Do you need some kind of resource on the Internet with a static IP, so that the server sends its address to it and the client registers this address at home? Or is there another way?

  • The last question, about the choice of resource, in my opinion, it would be better to remove, because it clearly does not fit into the model of the knowledge base. - aleksandr barakin
  • @alexanderbarakin Well, are there other ways? - Herrgott

1 answer 1

Yes, one way or another such a resource is needed. But he was invented a long time ago - this is the DNS. All you need is a domain name for the server and a tool for updating information about it.

There are two options here.

Option 1. Acquire a domain, get it on a third-party (paid) DNS-servers. Set the TTL zones to be low enough (5 minutes). Make a script that will update the information about the IP address of the server. Well, or embed this functionality in the server.

Well, or take a VDS and pick it up NS-server, then the same thing (TTL, script).

This option is quite expensive - there it is applicable only if you have a server on a dynamic IP is needed, and not from savings.

Option 2. Free DynamicDNS solutions. Google on the keyword DynamicDNS - I will not provide links, because it is not allowed.

As a rule, they are bundled with a separate client — an address updater.

As an option - provider DynamicDNS. Ask if a server already has a domain name ...


The options above were for the case when the server is yours. If the server belongs to your client / user, then you should not transfer control of your domain to it.

In this case, for option 1 you will need your own server, which will receive server ip-addresses from clients and update DNS, and in the second variant you will need to provide users with instructions on how to set up a domain name on DynamicDNS services.

  • thanks, did. Used anonymous dynamic dns - Herrgott
  • And here I am interested. Do online games in their clients use the same? - Herrgott
  • @Herrgott is not, there is a mechanism specific to online games. Those online games in which there are dynamic IP servers are more correctly considered as P2P, and not as client-server ones. - Pavel Mayorov