Hey guys. I've followed many toturals. So the last thing was:
Make A shortcut about srcds.exe and paste this in the shortcut line
C:\SRCDS\srcds.exe -console -game cstrike -tickrate 33 -ip 84.234.237.146 -port 27015 -maxplayers 16 +map de_dust2
I launched it and this came:
SOURCE DEDICATED SERVER:
Console initalized
game.dll loaded for "Counter-Strike:Source"
maxplayers set to 16
WARNING: NNET_OpenSocket: bind: WSAEADDRNOTAVAIL
and a popup come:
Engine Error: Couldn't allocate dedicated server UDP Port
Any ideas?
Btw i started the server without the shortcut too.. the regular.. then i got my lan ip adress.. 192.168.2.5 = no internet.
So if i not add the -ip and -port lines on the shortcut i run the server but with home ip 192.168.2.1
So i went to this page and saw some extra thing:
srcds.bat
@echo off
cls
echo Protecting srcds from crashes...
echo If you want to close srcds and this script, close the srcds window and type Y depending on your language followed by Enter.
title srcds.com Watchdog
:srcds
echo (%time%) srcds started.
start /wait srcds.exe -console -game cstrike -tickrate 33 -ip 84.234.237.146 -port 27015 +map de_dust2 +maxplayers 16
echo (%time%) WARNING: srcds closed or crashed, restarting.
goto srcds
this protect crashes it said... It was without the -tickrate 33 and -ip and -port before i edited. then it worked. but with LAN ip...
And now i'm stuck. Have NO ideas how to make this shit.
I've also tried Steam>tools> Source Dedicated Server. Launched it but got my LAN ip.. 192.168.2.5
btw i've also added a picture on what happen when i launch the shortcut
Please help me!
Please read the FAQs.
You need to bind to your local IP and forward the ports from your router. Users will connect via your EXTERNAL IP, even though the server binds to your local IP.
~ 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.
07-24-2008, 07:35 AM (This post was last modified: 07-24-2008, 07:36 AM by trewq.)
you dont need to put the ip in just do the port if you want it different from the default. you only have to use the ip if your server is connected directly to the net and gets multiple IP's. So to fix your problem just remove the ip and port switches and port forward the ports(to find out how just use the search) Then it will work on the net
First of all download hldsupdatetool from the VALVe webserver. We save it to a temporary location and run it.
Navigate through the wizard like you are used to, which means next most of the time. When it asks you about the destination folder, click browse. Type c:\srcds in the textfield and click on OK. Finish the wizard.
Now click on Start, Run and type cmd . Type in the commands mentioned here and end a line with the enter key.
Command(s):C:
cd \srcds
hldsupdatetool
The new version of HLDSUpdateTool will be downloaded now. As soon the cursor just blinks, press CTRL-C.
2) Downloading the files
Now we have an account, we can start downloading the files. This can take a few hours depending on the connection the server uses.
Command(s):hldsupdatetool -command update -game "Counter-Strike Source" -dir C:\srcds
Do not forget to replace the login values with your own. If you want to install a Half-Life 2 Deathmatch server, use "hl2mp" for the game switch.
Go get yourself a cup of coffee.
3) Starting srcds
First edit (or create) c:\srcds\cstrike\cfg\server.cfg like you want it to be. Now we are ready to run the srcds.
Click Start, Run, type in the box there:
c:\srcds\srcds.exe -console -game cstrike +map de_dust -maxplayers 16 -autoupdate
and press enter.
Your srcds is now up and running. (-game hl2mp if it's a HL2DM server ofcourse)
If you want to use the GUI mode, with the interface do not add any options to it. (just srcds.exe)
Extra) Restarting srcds at crash
Batch files are little script files that tell Windows what to do. If srcds crashes, it will not restart like possible under Linux. (Linux uses a "Script" file too)
What we are going to do is make sure that as soon HLDS suddenly quits it will restart. First we open notepad. What we write in there is the following:
Command(s):@echo off
cls
echo Protecting srcds from crashes...
echo If you want to close srcds and this script, close the srcds window and type Y depending on your language followed by Enter.
title srcds.com Watchdog
:srcds
echo (%time%) srcds started.
start /wait srcds.exe -console -game cstrike +map de_dust +maxplayers 16
echo (%time%) WARNING: srcds closed or crashed, restarting.
goto srcds
Replace the marked part with your own commandline and values. Save the file as C:\srcds\srcds.bat in notepad (NOT .txt) and next time click the srcds.bat file. If you need to close srcds, close the hlds window and press Y (depending on language) at the Terminate batch question. Please do note this does not work with crashes/errors that involve a Windows error box.
racou2 Wrote:1) Getting started with HLDSUpdatetool
First of all download hldsupdatetool from the VALVe webserver. We save it to a temporary location and run it.
Navigate through the wizard like you are used to, which means next most of the time. When it asks you about the destination folder, click browse. Type c:\srcds in the textfield and click on OK. Finish the wizard.
Now click on Start, Run and type cmd . Type in the commands mentioned here and end a line with the enter key.
Command(s):C:
cd \srcds
hldsupdatetool
The new version of HLDSUpdateTool will be downloaded now. As soon the cursor just blinks, press CTRL-C.
2) Downloading the files
Now we have an account, we can start downloading the files. This can take a few hours depending on the connection the server uses.
Command(s):hldsupdatetool -command update -game "Counter-Strike Source" -dir C:\srcds
Do not forget to replace the login values with your own. If you want to install a Half-Life 2 Deathmatch server, use "hl2mp" for the game switch.
Go get yourself a cup of coffee.
3) Starting srcds
First edit (or create) c:\srcds\cstrike\cfg\server.cfg like you want it to be. Now we are ready to run the srcds.
Click Start, Run, type in the box there: c:\srcds\srcds.exe -console -game cstrike +map de_dust -maxplayers 16 -autoupdate
and press enter.
Your srcds is now up and running. (-game hl2mp if it's a HL2DM server ofcourse)
If you want to use the GUI mode, with the interface do not add any options to it. (just srcds.exe)
Extra) Restarting srcds at crash
Batch files are little script files that tell Windows what to do. If srcds crashes, it will not restart like possible under Linux. (Linux uses a "Script" file too)
What we are going to do is make sure that as soon HLDS suddenly quits it will restart. First we open notepad. What we write in there is the following: Command(s):@echo off
cls
echo Protecting srcds from crashes...
echo If you want to close srcds and this script, close the srcds window and type Y depending on your language followed by Enter.
title srcds.com Watchdog
:srcds
echo (%time%) srcds started.
start /wait srcds.exe -console -game cstrike +map de_dust +maxplayers 16
echo (%time%) WARNING: srcds closed or crashed, restarting.
goto srcds
Replace the marked part with your own commandline and values. Save the file as C:\srcds\srcds.bat in notepad (NOT .txt) and next time click the srcds.bat file. If you need to close srcds, close the hlds window and press Y (depending on language) at the Terminate batch question. Please do note this does not work with crashes/errors that involve a Windows error box.
ok thanks for this reply but that's how i made my dedicated server.
you see the fat sentences.
the first one: I've done it exactly like that. Then i start with LAN ip 192.168.2.2 ( i know it was 5 first but it changed on a restart )
You have to add port forwarding through your router
Also, giving your server a static local IP is also a good idea...
~ 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.
yeah i've tried.
many ports from youtube.. i've seen.. got some help from portforwading.com ... but i saw on this faq.. if port forwading doesn't work. dmz your ip. that means unblock router firewall on my computer ( don't worry i have #1 firewall/antivirus 2007..
also. Static local IP.. what is that ? server ip will be 192.168.2.2 if i dont give them an ip command. If i guess right. Why should i have local ip .. same as lan. please help guys!
What problem are you having now? Are you still having a UDP error?
~ 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.