As far as I know for a socket client to be able to connect to a socket server it needs to know the server’s IP address.
But what happens when the server is using a dynamic IP address?
Is it possible to connect to the server in any other way (I don’t think so)?
Is there a way for me to let the client know the server’s IP address automatically?
Thanks in advance
You could use a DNS name as well. There are some DNS providers which allow you to associate a fixed DNS name to a dynamic IP address. You may take a look at dyndns.
The client needs an IP or DNS name.