Posts: 298
Threads: 0
Joined: Jun 2011
Reputation:
6
Depending on your setup, if your behind a NAT router you'll use your internal IP address, not your external. More than likely its like 192.168.1.2 or something similar. You'll use that IP address in your command line, not your external. The only time you'll use that external IP address is if you connect to the server from inside of CS or you have that IP address on your actual computer (inside of ipconfig).
And from the looks of that website, yes those are the ports you'll need to forward through your router to your internal IP address.
D:\path\to\srcds.exe -game cstrike -ip 192.168.1.2 -port 27015 -maxplayers 16 -console -autoupdate +map de_dust2 +exec server.cfg
This is an example of what command line you'll need to run.
Game Servers -- CentralFrag.com -- Use promocode "frag" for 15% off every month!
Posts: 146
Threads: 26
Joined: May 2008
Reputation:
0
06-19-2011, 01:04 AM
(This post was last modified: 06-19-2011, 01:12 AM by impact.)
I did everything you told me to do but now when I use the command line it says "Couldn't allocate any server IP port" :S
Any ideas?
This is what my command line looks like;
C:\srcds\orangebox\srcds.exe -console -ip 193.213.112.4 -game cstrike +map de_dust -port 27015 -maxplayers 16 -autoupdate
Posts: 298
Threads: 0
Joined: Jun 2011
Reputation:
6
Are you running the server from the same computer your playing Counter Strike on? If you are the best situation would be to host it the server on another computer.
Try changing the -port 27015 to -port 27016 and see if that helps
Game Servers -- CentralFrag.com -- Use promocode "frag" for 15% off every month!
Posts: 298
Threads: 0
Joined: Jun 2011
Reputation:
6
Hmm not really sure. Try changing your server back to -port 27015 and inside of Counter Strike console try using these commands:
clientport 27006
hostport 27016
tv_port 27021
Maybe that will help
Game Servers -- CentralFrag.com -- Use promocode "frag" for 15% off every month!
Posts: 3,906
Threads: 404
Joined: Oct 2007
Reputation:
21
Remove that -ip line from your startup command.
~ Mooga ...w00t? -
SRCDS.com on Twitter
Please do not PM me for server related help
fqdn Wrote:if you've seen the any of the matrix movies, a game server is not all that different. it runs a version of the game that handles the entire world for each client connected. that's the 2 sentence explanation.
Posts: 146
Threads: 26
Joined: May 2008
Reputation:
0
06-19-2011, 09:59 AM
(This post was last modified: 06-19-2011, 10:11 AM by impact.)
And btw, I forwarded to the same ip that I had in the command line. Is that the right thing to do? And also, after the portforward, do I need to reboot my router?
Posts: 298
Threads: 0
Joined: Jun 2011
Reputation:
6
I've never had to reboot the router on any routers I've setup port forwarding on. Does the port forwarding website you linked in your first post say its working right?
Game Servers -- CentralFrag.com -- Use promocode "frag" for 15% off every month!
Posts: 298
Threads: 0
Joined: Jun 2011
Reputation:
6
Do you have any sort of Windows Firewall running on the server?
Game Servers -- CentralFrag.com -- Use promocode "frag" for 15% off every month!