OverviewThis service allows devices to register "services" available on a LAN. Problem StatementDiscovery of services available on a LAN is a problem addressed by technologies such as Multicast-DNS with Service Discovery but when it comes to supporting these protocols on mobile devices (i.e. Android), the situation is more complicated. On Android devices (as example, I haven't investigated on iOS or others), many device manufacturers (e.g. Samsung) have opted to disable reception of multicast packets: thus, Multicast-DNS cannot be used. Use CaseA Use Case addressed by the ipreg service is the following:
One way to resolve this situation is to have the mobile phone send a "phone ringing" event to the music source to have it put on pause/mute. Service DetailsRegistration of ServiceRegistration of a Service is done through the following API: GET method : HTTP://services.systemical.com/ipreg/v1/$service/$IP Where:
If the call was successful an HTTP status code of 200 will be returned. Service QueryingTo retrieve the list of services registered at a particular public location, use the following API: GET method : HTTP://services.systemical.com/ipreg/v1/ [?format=json|jsonp] A response of the form for JSONP format will be returned:
Restrictions
How does it work?The service works by looking at the "source" IP address of the incoming HTTP connection. This gives the "public" IP address from which the request is coming from. At this point, the service can associate the "$service" being registered with the "public IP" address of the registrant. |
Web Services >