By setting up your LAN properly.

You will need:

   1. Your LAN's DHCP server to know the proper location of your DNS server. 
   This is the DNS server your phone will use.
   2. Your DNS server to know the names addresses of your MS machines. DNS 
   is how your phone (and anything else even remotely standard) resolves 
   addresses.
   3. Your application to use the FQDN (Fully Qualified Domain Name, e.g. 
   myserver.mycompany.com)

There are a number of approaches to doing this. I'll describe just the 
simplest (in the sense of requiring the least technology and making the 
fewest assumptions), not necessarily the easiest or best.

   1. Assign a static IP address for your server. If you will only be 
   accessing it via LAN, it can be on the internal LAN IP address range, but 
   not one that is in use, or allocated to a DHCP address pool.
   2. Register that IP address with your DNS server for mycompany.com. You 
   want to add an 'A' record with the name (without the .mycompany.com) and the 
   IP4 address. You may also want to add an IP6 address, using an AAAA record, 
   if your network supports that.
   3. Make sure Constants.serverNameStr has the '.mycompany.com' on the end.

Other approaches allow for setting it up and managing it dynamically, for 
example, see this Microsoft article on integrating WINS and DNS:

http://technet.microsoft.com/en-us/library/cc750589.aspx

Or this one on Active Directory and DNS:

http://technet.microsoft.com/en-us/library/cc759550(WS.10).aspx

If you want to access it even if you're not on the LAN, you'll need a public 
IP address, and suitable router configuration for your service to be 
contacted on the proper machine, but it still boils down to the same 
process.

Note that you can have an internal DNS server with data that is not public. 
Your phone (and any device using DHCP) will get the address of the DNS 
server to use for resolving host names from the response from your DHCP 
server. However, this isn't necessary for successful use.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to