How to setup DNS server for a game?

Home » Computer Networking » How to setup DNS server for a game?
Computer Networking No Comments

Hi guys, I host a couple servers for a game and the way players connect is by manually typing in my ip and port number. I would like to hide my ip by using a domain name instead like "domain.com : 6337" but will i need a website like noip.com or can i do it myself? I am willing to install windows server

Hi guys, I host a couple servers for a game and the way players connect is by manually typing in my ip and port number. I would like to hide my ip by using a domain name instead like "domain.com : 6337" but will i need a website like noip.com or can i do it myself? I am willing to install windows server 2008 if i need to.

Best Answer:

Murshed: From the vague details in your question, I am guessing that you are hosting the server(s) on your home network, that you have a router on your ISP connection, that your friends are accessing the server(s) over the Internet and your public IP address is dynamic (it can change rather than being fixed).

The steps I used when I set up a server on my home network for my friends to access are as follows:

1) Set the server computer on a static address on the internal private network. This address must not be used by any other device on the network and should be outside the range of addresses for the router's DHCP address pool.

2) Set up port forwarding in the router to forward incoming connections on the specific port to the server computer.

3) Sign up with a DDNS service such as noip.com or dyn.com. There are other such services. Some offer a free service with certain ranges of domain names, which are normally of the form yourname.dyn.com (this is just an example). Paid for services tend to have wider ranges of possible domain names or other advantages.

4) Check whether your router includes a DDNS updater for the service. If it does, then configure the router's updater. Whenever your router detects a change of public IP address, then it notifies the DDNS service of the new public address. The alternative is to download the updater program from the DDNS site and install it on the server computer. This checks the public IP every few minutes and updates the service when the address changes.

You can now use a URL such as http://yourname.dyn.com:6337 to access the server.

Note: if your ISP assigns a static (fixed) public address, then you do not need a DDNS service, and you can use a URL such as http://123.234.56.78:6337. You can still use a DDNS service with a static public IP address, but it is not necessary.

If your public IP address changes your server may not be accessible for a few minutes. In my experience this was less than 10 minutes.

With many home routers, a URL involving the details used from the Internet may not work from computers on the same internal network as the server computer. You have to use the internal static IP address of the server and its port number.

I hope this helps.

Other answer:

Murshed:
You'll need to use a proxy service or something like noip.com. Setting up your own DNS server also requires registration with your ISP, permissions to even do it…its just a mess.
Jeremy I:
You'll have to buy a domain name and point it to your server…

Problem is that you'll need a static IP address to ensure that the DNS listing for your domain name doesn't become invalid or redirect to another person's IP. Usually static IP's are sold under business packages by your ISP. To inquire more, you should contact your ISP. Otherwise, you'll need to resort to no-ip services. You can, however, have multiple no-ip's and point them to different ports.

Adrian:
You have to "buy" (register) a domain name, then point it towards your server IP address. Hopefully, your public IP does not change, or at least not often…
You then use the domain management tools (from whomever you registered the name with), to set up the IP address that point to the server (A and CNAME records)
Mark:
you can use domain forwarding from your domain host but hosting a public server over your isp is the issue they regulate the broadband for uploading to clients usually to 1/2 the download speed.
Josh:
You have to "buy" (register) a domain name, then point it towards your server IP address. Hopefully, your public IP does not change, or at least not often…
Integration 20:
Josh's answer is the easiest.

And buying a domain name is usually pretty cheap.

Murshed:
Thanks for all the fast replies. I found out that unfortunately my game doesn't let us type in domain names but thanks for the help guys!

LEAVE A COMMENT