Solved: Garry's Mod Dedicated Server Issue

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

brodie1600

Thread Starter
Joined
Aug 19, 2008
Messages
103
Hello all,

I've recently been trying to set up a dedicated server for Garry's Mod. I used to run a Local server, but I wanted to have one that allowed a wider range of capabilities and settings.

I followed this guide: http://wiki.garrysmod.com/?title=Windows_Dedicated_Server_Setup

I set everything up how it told me to, and when I got to the "Starting srcds" part, I subbed in my IP information for the ones given in the example.

My batch file looks like this:

Code:
@echo off
cd c:\srcds/orangebox
echo Starting game server.
echo Beginning "Garry's Mod"
srcds.exe -console -game garrysmod -port 27118 +map gm_construct +maxplayers 16 +ip [[external ip]]
echo "Garry's Mod" has now started.
echo It is recommended that you start Server Crash Recovery aswell.
I went into my router settings and forwarded port 27118 on both TCP and UDP for my internal IP.
I also allowed the required ports for the GMod server as well as port 27118 on both TCP and UDP through my firewall settings.

Whenever I try to run the batch file above (which starts the server client), I get an error that says:

"Couldn't allocate any server IP port"

I've checked all around to find a solution to this problem, but nothing I've tried seems to work.

I went on http://www.yougetsignal.com/tools/open-ports/ to check to see if port 27118 is open on my internal IP... It says it's closed.

This, I'm guessing, is what's causing the error. The port I want to host my server on isn't forwarded for my external (and internal I guess) IP (note that above I mentioned that I did forward this port, and I know I did it correctly (and, when I checked to see if any of the other ports I forwarded were open (with that port checking website) they weren't)).

Just to troubleshoot a bit, I changed the IP in the batch file from my external IP to my internal IP. The program starts up fine, the server starts, and I can see my server in the LAN list... although I can't connect to it (again, I have no clue why).


This has been frustrating me for quite some time, and I'd just like for my server to get setup on my external IP (so that it's public) and have other people see it in the list and connect properly. At this point, I can't even get the server started when my external IP is in the batch file.


Any help is greatly appreciated =)

~brodie1600


((PS. I've tried the "+hostport 27016 +tv_port 27021" thing already. Makes no difference))
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Members online

Top