The Broadband Guide
search advanced

Router Configuration Guide

YeOldeStonecat's Router Configuration Tips
2003-03-30 (updated: 2021-01-17) by
Tags: , , , , , , , ,

One of the most common questions I see is how to run a game server behind a router, or how to make the network more stable when behind a router. This can also apply when you wish to run any other services from any computer on your network, and have them available from the public side of your router, such as an FTP server, PcAnywhere host, web server, mail server, etc etc. As for how it applies to making a network more stable, I've found that a router's DHCP service isn't the most reliable... sometimes a workstation will lose its IP information, and appear to fall off the network, or not be able to access the Internet. Users may find that rebooting the computer helps, or for those who know how to WINIPCFG (Win9X) or IPCONFIG (WinNT), and release/renew, find that is easier. This is a more common problem with Win9X users. What I find is more reliable for home and small offices where an NT Server is not available to manage IP, is to create static IP addresses on all your computers.

The idea behind running a server that can be seen from the public side of your router, is you need to open up ports on the router, and forward those to an internal LAN IP address on your network. Since you're going to be plugging in your internal LAN IP address on the port forwarding section of your router, once that's set, you want that IP address to always be the same. You don't want to keep trying to hit a moving target. If your workstation is set to "Obtain IP address automatically" there's a chance that LAN IP address could change one day. Usually computers will pickup the same IP address from a DHCP server each time, however it is possible it can change at some point in time. So I recommend locking down that IP address manually.

For a computer to gain internet access out through your router, it will need three components specified in the TCP/IP properties of your workstations.

1) The same IP scope as the router
2) A gateway, and
3) DNS servers.

WINS is not used/needed on small networks, it's for larger networks where an NT Server is present running that WINS service. On most home networks, you'll be leaving WINS disabled if Win9X, or empty if WinNT.

IP Address and Subnet Mask

First, we'll tackle the IP address of the computer(s). What you want to do first, is find out the IP scope that your router is running for its LAN side. This should be in your manual, and it's just about always what's called a Class C, private IP scope, such as 192.168.1.XXX, or 192.168.0.XXX, all with a subnet mask of I'll use the 192.168.1.XXX in this article - it's how I'm setup at the office, and it's probably the most popular one out there (Linksys routers use them by default). I prefer to leave DHCP enabled on the router. This is good for a safety net, in case you mess something up, you can simply set your computers TCP/IP to obtain IP automatically and you're back in business. Also helps out for other computers to connect quickly and easily - a perk if you host LAN parties. I try to keep things a bit standardized. What's most commonly found in networks is the gateway will be a .1 address... For example, on a 192.168.1.XXX network the router, which is the gateway for the network, will be Some makes of routers will use the opposite end and end in .254. Regardless, it's just something you will make a note of, and if you don't know, should be in the routers manual.

That LAN IP address of the router is the gateway for your network, and also the address you will enter into your web browser to log onto the routers web based admin panel to configure it. Most routers DHCP services will hand out addresses starting at .100 such as,, etc etc. That will leave you with .2 to .99 unused... and those are the IP's I use for the static IP addresses. I feel it's better to use IP's outside the DHCP scope... since there are situations where you can end up with conflicts. Also note that each computer on your network must have a unique IP address... so if you're going down the row with static IPs be sure each is unique in that last octet, meaning,,, etc. So you choose a unique IP such as for your server. The subnet mask of course will be the same as the router, and all computers on your network, in my example here.


Now, in your network properties, you'll also enter the router itself as the gateway: You will do this for all computers on your network (the router is the gateway for all of them).


Next you'll have DNS. You have two choices here, or you could combine the two. First, you can simply put the router itself here, since the router DNS forwards to whatever DNS servers your ISP hands out to the router when it connects. Second, you can check your routers web admin page when it's connected (the status section) and jot down the two DNS servers it obtains from your ISP. I enter those bypassing the router. I believe it's quicker that way, since it's one less job the router has to do (forward the request). I find this method works well and is much more reliable. Why not ask your ISP's DNS servers directly ? The only thing that can go wrong here is, once in a blue moon an ISP can change their DNS servers. It's rare, but sometimes ISPs get bought out, merge, etc. and some of their IPs can change. So what you can do is, add the router's IP as the 3rd DNS server - that way if the first two IPs ever disappear, you'll still get on the internet fine, since the computer will eventually go to the router for DNS if the first two don't answer, and the router will DNS forward to whatever the new DNS servers are it obtains on the WAN port. Another option is you may be running DNS locally on your own server on your LAN - in that case simply enter that IP alone.

  Here is a screenshot of my network adapter properties

 Note: if you click on the Advanced button you get more properties, where you can add a 3rd DNS server if you wish under the DNS tab (as seen in the following screenshot). This is a  good place to enter the router itself as your third DNS server, in case the ISP changes the IP address of the first two (again, very rare, but can happen).

Now you should be all set, and able to surf the net out through your router and access other computers on your network, whether those computers are setup static, or using the routers DHCP.

If you are running a server, or other service, and have forwarded the necessary ports to the IP of the computer running that application, when clients will connect from the outside world, the public, or "wild side" of the router, they will be connecting to the WAN IP address of your router in order to connect to your computer. Remember, Class C private IP addresses are what the LAN side of broadband NAT routers use, and these cannot be used on the public side - they are not routable outside the LAN.

Let's take Quake 3 for an example. Say you setup your Q3 server on the LAN, its IP address is You have forwarded the necessary ports on your router, Q3 only uses 27,960... so you've forwarded that port to in your router's web admin interface. And let's say your ISP has given your router a WAN IP address of your buddies will be connecting to the router's 216. address, not your computer's 192. address. By the way, that 216. address is Google's... so don't try connecting for a Quake 3 game ;)

  User Reviews/Comments:
by mcenac - 2007-05-14 00:10
After 3 days of hard work in trying to setup my router paradyne 6218, to be able to access internet from both computers.Internet connection was on but I only could connect one PC with IE7.
After having read this article and followed your DNS setup recommandation everything is working fine.
Thanks a lot!!

One computer ıs runnıng Vısta ultımate and the other XP sp2
by mdinant - 2008-05-16 07:14
This is by far the most clearly written tutorial about setting up a server behind a home router. Thanks a lot!
by anonymous - 2009-01-20 04:02
Amazing! I already knew about 95% of what was talked about here, so in essence, it didn't help me too much, but man oh man do I wish I had found this article a few years back when I struggled wih this stuff. This is by far the celarest and best written article I have seen yet! Thanks for everything:-)
by zen76 - 2009-02-01 08:57
This article saved the day! Well written regarding DNS/router setup.
by anonymous - 2009-02-12 18:30
I just bought a Zyxel P-660HW-D1.
All this stuff like routers, LAN etc is very new to me. Reading your article(s) helped me very much to understand something more. And I'm not "afraid" now to enter the configuration page of my router to try some things.
Thx a lot
by Kitty - 2009-07-17 23:54
You've explained that so well; really makes sense now. Once again thanks for the great article.
by john - 2009-09-22 01:20
Great article indeed. I only have a question, when someone from the internet is accessing your router, they will be using just the IP address or the IP address ":" and then the "Port no." to connect to the game server you are running on that port on that particular machine. Could you please clarify this?
by Philip - 2009-09-22 09:30
When accessing websites, the browser assumes that you want to connect to port 80 (default for HTTP traffic). So, any address (or IP address) you type as is essentially

To connect to a port different than 80, you have to specify it after the hostname, separated by a comma - as in:


If you'd like to connect to port 8080 on a remote host, you'd have to type:

Or, for IP addresses:
by mikelis - 2013-07-30 03:41
Dude, this thing saved my day at work! :D
I knew practically nothing about networking. Thanks! :)
News Glossary of Terms FAQs Polls Cool Links SpeedGuide Teams SG Premium Services SG Gear Store
Registry Tweaks Broadband Tools Downloads/Patches Broadband Hardware SG Ports Database Security Default Passwords User Stories
Broadband Routers Wireless Firewalls / VPNs Software Hardware User Reviews
Broadband Security Editorials General User Articles Quick Reference
Broadband Forums General Discussions
Advertising Awards Link to us Server Statistics Helping SG About