views:

94

answers:

2

FileMaker Pro has a feature that allows client applications to auto-locate their server's IP address and connect to it. What is the best way to do this using a general purpose language like Java or .NET?

+1  A: 

Use can use multi-cast UDP to attempt to contact a server listing on a known multi-cast group and port.

Peter Lawrey
+3  A: 

FileMaker probably is using Bonjour. Check at http://developer.apple.com/bonjour/ and also Avahi

It does so by implementing what they call multicast-dns. Using a P2P dns using multicast, they are able to show not only servers, but also servers and ports.

And even if you're using on an enterprise network, you can also publish records on the intranet dns server, so you are not going to rely on your routers and their multicast tolerance (which can be overwhelming). So, it scales up.

aldrinleal