jdl
jdl

Reputation: 6323

Using "sockets" how can I find a server if I don't know its address?

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

Answers (2)

Adrian Cornish
Adrian Cornish

Reputation: 23868

I believe this is the exact purpose of the Domain Name Service protocol - aka DNS

Upvotes: 0

Carl Norum
Carl Norum

Reputation: 224944

You are going to need some kind of service discovery protocol. Bonjour or UPnP are examples.

Upvotes: 2

Related Questions