SRCDS Steam group


Router configuration and IP's explained questions and suggestions
#1
How to configure routers to work with srcds?

First of all you need to understand the difference between external and lan ip addresses. When running a srcds with behind a router your server console will appear with the "LAN" ip. This will be the ip that anyone on the local network (sharing the same router) will connect to. To find what your external ip is look at the image below.

[Image: koomlazzzaaa.jpg]

That is whats known as your external ip, or the ip that will take internet users to your house, through your router, and to wherever the router will allow it to go from there.

Now this brings you to whats called port forwarding. Basically its telling your router that anyone that trys to connect from outside the local network to inside on a specific port to go here. Here being your game server.

While this can not go into detail on specific routers (due to the fact theres hundreds), but I can however direct you to a site that covers just about every router made. That site can be found here = http://www.portforward.com/routers.htm

The basics though:
1. You will have to connect to your router, usually done by going to the URL http://192.168.1.1 (which would be the ip of the router itself) It will ask you for a logon, which varies greatly from router to router, I know most linksys routers are blank username and admin as the password by default. Some routers are just blank, some are admin for username and password. That site stated above should cover that, or try looking in your routers documentation, or there support section on there website.

2. This part is very differen't from router to router, but somewhere there should be a section on port forwarding. I know on my Linksys this is under the applications and gaming section. Here you will have to add port 27015 (or whatever you have your server set to) in tcp and udp to be forwarded to the computer running the servers lan ip address.

3. With that done your basically done (givin you have sv_lan set to 0 in the server), its pretty simple. The hard part can be trying to figure out how to forward ports on your router. If the site above doesn't cover your router, check your routers documentation. You can find just about everything you would ever want to know there. If you don't know where that is, check your router manufacturer site. They will most always have documentation availble for download.

*NOTE*
There is kind of a "bad router" list out there. Well more like a bad router firmware list. Most of the time routers that aren't handleing a server and port forwarding right can be fixed by downgrading the firmware. Here is a link to a page on steampowered.com about this list of bad router firmware. Steampowered.com

Ok, more about your external ip. Chances are if you don't know what a static ip is, your external ip (as stated in the above image) is whats called a dynamic ip. A dynamic ip means that from time to time it will change, because it is assigned your your isp's dhcp server. This means when your router loses connection to your isp's server for any reason at all, there is a chance on your ip changing. Which can really stink if your server has a following, because the server will seem down in there favorites after the ip changes. Usually you can get whats called a "static ip" from your isp. Meaning that no matter what, your external ip will stay the same. You isp will of course probly charge you a small fee for this.

There is one other option available, its not near as good, but it is free! You can use a dynamic dns service. Like at http://www.dynu.com you can make an account, and you will have to install a little piece of software, and basically if your external ip ever changes it will automatically update your dynu url, which will be in the format "yourname.dynu.com" so you would be able to connect to that (attaching your port at the end of course). But with this if your ip changes, your server followers will still have to re-add this dynamic url into there server favorites, so still makes it.. a pain.

*Another Note*
You should note that your servers lan ip should be made static, because if that ip changes it will make your forwarded ports direct to the wrong area, making them useless, and your server dead. For instructions on how to make the lan ip static, read on below for a how to in Windows XP and later.


How To Make the LAN IP Static-

1. You first need to find out the current IP settings for the computer that are assigned by the local DHCP server. To do this click start -> run. Type in "CMD" and press "enter". Then in the command prompt window type in "ipconfig /all" (without the quotes). Then take note of the ip address, subnet mask, default gateway, and the 2 dns servers (there maybe more, usually just 2 though, or sometimes only 1. however many there happen to be, use them all).

2. With all that written down go to start -> control panel then click on "network connections", or if you have catagory view enabled click on "network and internet connections -> network connections"

3. There should be an icon in that window that says "local area connectiong". Right-click on that and click properties. Then click on "internet protocol [TCP/IP]" and click properties.

4. Then click the bullit next to "Use the Following IP address" and fill in the information you noted earlier. Then click ok, and ok again. It should then be effective that your LAN ip is static for that computer.

If this makes you not able to connect to the internet at all, please make sure you copied the information right, try starting with step 2 and setting it back to "obtain ip address automatically" and starting over from step one to make sure you copied everyting exactly how it was.

*NOTE*
Do NOT try to put your external ip in the ip field, that will make any other computers on the local network lose internet, if it will work at all.

Having problems with a D-Link router?
Try this: http://forums.srcds.com/showthread.php?t...36#pid9036

Having problems with a Netgear router?
Try this:http://forums.srcds.com/showthread.php?t...99#pid9199
Reply
#2
i can't go trho to the paswoord of the router Sad
Reply
#3
well if your dad has custom settings on the router, he probly changed the password to access it, for security reasons.
Reply
#4
skeletor Wrote:well if your dad has custom settings on the router, he probly changed the password to access it, for security reasons.

Yep, and he won't give it to me so that means i cannot make a cs server Sad
Reply
#5
well if he can set it up for you.... its not like you have to. but yea, if he won't change the settings, then you can't set up a server.
Reply
#6
skeletor Wrote:well if your dad has custom settings on the router, he probly changed the password to access it, for security reasons.

It shouldn't be more than $50 to host a server at a site such as godaddy.com

You have to be able to configure your own server and have fair knowlege or ability to learn the linux/unix operating system.

I know this because i have done it. I live in arizona and i have seen people in california get pings of 40. The server is running at 66 tickrate and outputs an average of 90fps. This is for $49.00 a month.

I am not promoting Godaddy.com. Other sites are probably priced the same and probably *lower*. I am using godaddy though and its working so far.

I have successfully installed cs:s dedicated server, meta mod, mani admin, and cssdm. It's really pretty easy. Most of the mods come with instructions detailing how to install them. It's just a matter of finding the mods real homepage and not some mirror site with inaccurate information. Also, you must expect some of the information to be a few weeks out of date, as releases are made more often than updates to the documentation. This is true of almost all free software.

$50 in a month really isnt much at all. That's like 12.50 a week. If you cant make $12.50 a week and you are talking about hosting a computer server, then you need to go look for a job Smile

Think about it. All you would be using you dads dsl for is to connect to the remote server via SSH. (Secure shell) SSH is basically the linux equivilant of a dos prompt. It's where you are able to remotely control the actual computer that is in a datacenter somewhere across the country.

Additionally, you'd be able to host many web sites on something like a virtual dedicated server, as well as MULTIPLE game servers, such as cs:s, hl2dm, and dod:s on the same computer. On my current top readouts, the server only takes 2% of the cpu and 10% of ram during an average (60%) player load.

You could even host servers for other people, in effect making your server free or even making money for you to run.

If you are a good reader, you can go to the computer store and buy some books on the unix operating system and basic programming. Make sure to find a book that gives specific examples and consists of at least 500 pages. Anything less isnt worth the $50 your going to pay for the book. !Specific examples: dont forget that!

If you ever amass $50 dollars and decide to spend it on a month worth of a server, send me an email at b-r-e-t-t-l-e-f-t-y-@-g-m-a-i-l-.-c-o-m | Exclude the hyphens, the stupid email bots are terrible these days...

Its pretty easy and cheap and sometimes even profitable (if you are willing to do the work) to host a source server.






Reply
#7
Yea, 50 dollars a month isn't bad, but I know like me, 50 dollars a month would kill my bank account. Yes hosting off of a dedicated box is very nice, but this tutorial was meant for those who don't have the funds, or if they just wish to make a little server for them and a couple friends to play on the weekends...
Reply
#8
Excuse me, about this quote.

Quote:1. You first need to find out the current IP settings for the computer that are assigned by the local DHCP server. To do this click start -> run. Type in "CMD" and press "enter". Then in the command prompt window type in "ipconfig /all" (without the quotes). Then take note of the ip address, subnet mask, default gateway, and the 2 dns servers (there maybe more, usually just 2 though).

What if there is only ONE dns servers? In my instance, I only have one. The FAQ about static IP address says that I have to call my ISP. What if I DON'T want to do that? How else would I be able to find the 2 dns servers?

Thanks.
Reply
#9
sorry bout the late reply about this, but if you only have 1 dns server, that will be fine. just usually isp's set up incase 1 would go down, or be under to heavy of a load at a time you would need it. (without a dns server your pc will not be able to resolve any domain name to the ip address).

Also note, that this would be different then if you wanted an external ip address. this is just for a static local ip address, so that in the event of a restart your local dhcp server won't assign a different ip screwing up all your forwarded ports. for a static external ip address you must be assigned one from your isp.
Reply
#10
I had a dedicated server running perfectly and now all of a sudden its giving me troubles and won't get off my lan (I had massive troubles before but fixed them.) I go to port foward on my linksys router page, and every time it says it saves its settings and I go back it actually hasn't. all the ports are left blank and everything.

I'm sick and tired of having to deal with this.
Reply
#11
get a dedicated server set up (old pc u got somehwere) and hook a switch behind it, no more worries bout portforwarding
Join the Source Dedicated Server Support Group on Steam Community!
Source Dedicated Server (SRCDS)
Free to join, Live support! (When available)

http://forums.srcds.com/viewtopic/5114
Reply
#12
alright i have a quick question... your linksys router sounds a lot like mine.. but the problem i'm having is idk what to call the application for it to allow me to run it i've tried different things.. but i believe thats the only thing holding me back.

i've hosted CS 1.6 ded. servers and the application name was "cstrike" and it worked perfectly but now with source it doesn't seem to want to work for me... please help

thank you in advance
Reply
#13
Lostthought Wrote:alright i have a quick question... your linksys router sounds a lot like mine.. but the problem i'm having is idk what to call the application for it to allow me to run it i've tried different things.. but i believe thats the only thing holding me back.

i've hosted CS 1.6 ded. servers and the application name was "cstrike" and it worked perfectly but now with source it doesn't seem to want to work for me... please help

thank you in advance

It should not matter what you name the application. That is only so you know what the port is opened for. So when your like me you have 15 ports opened to 4 different pc's you know which one is which without remembering what port is what. (i know that was a bit late, and he probly won't even see that, but just in case some one else has the same question)
Reply
#14
hey everyone now i dont get is what program to forward the ports to i need it srcds but i cant find it on the programs they have and stuff and is there a certain one im suppose to click on or what i dl the free one so i didnt pay on the "www.portforward.com" and im looking at it and theres a selection saying defualt app. or custom and theres no srcds only theres steam ones half life and well if so do i make the srcds in custom plz help me i want ppl to join me and im kinda mad so im like really into this and i need help hopefully i do get a reply :] thanks

k-rabit
contact me at shadowhunter695@yahoo.com
Reply
#15
shankster Wrote:hey everyone now i dont get is what program to forward the ports to i need it srcds but i cant find it on the programs they have and stuff and is there a certain one im suppose to click on or what i dl the free one so i didnt pay on the "www.portforward.com" and im looking at it and theres a selection saying defualt app. or custom and theres no srcds only theres steam ones half life and well if so do i make the srcds in custom plz help me i want ppl to join me and im kinda mad so im like really into this and i need help hopefully i do get a reply :] thanks

k-rabit
contact me at shadowhunter695@yahoo.com

In your router it shouldn't matter what program you forward the ports to. That is only so you know what the port is forwarded for, more like a label. Just create a custom one and add 27015 tcp and udp.
Reply


Forum Jump:


Users browsing this thread: 5 Guest(s)