Patent ID: 8924574

Claim:
A method comprising: receiving, at a gateway, a domain name system (DNS) query from a requestor, requesting an Internet Protocol (IP) address of a mobile device for establishing communication with the mobile device, wherein the gateway is configured to anchor a plurality of mobile devices for communication over a cellular network; determining an attachment status of the mobile device indicating whether the mobile device is anchored at the gateway; determining whether the DNS query can be resolved based on the attachment status of the mobile device; and upon a determination that the DNS query can be resolved based on the attachment status, determining the IP address of the mobile device based on the attachment status, wherein determining the IP address comprises: determining an address of the mobile device based on the attachment status: determining that the mobile device does not reside in a network-address-translated network; and identifying the address of the mobile device as the IP address of the mobile device, and sending, to the requestor, a response to the DNS query that includes the IP address of the mobile device to allow communication between the requestor and the mobile device.