Reputation: 6323
Using "sockets", I am writing an Apps in Visual C++ and for iPhone to communicate with each other. Since I know the IP address I can set it and everything works fine. But if a user doesn't know the IP address, how can they find it or connect to a server on a port?
Upvotes: 0
Views: 116
Reputation: 23868
I believe this is the exact purpose of the Domain Name Service protocol - aka DNS
Upvotes: 0
Reputation: 224944
You are going to need some kind of service discovery protocol. Bonjour or UPnP are examples.
Upvotes: 2