- Joined
- Dec 3, 2011
- Messages
- 2,232
- Reaction score
- 1,518
Tutorial level: Beginner
All tutorials for setting up servers pretty much include setting it up using hamachi. A bunch of people try setting it up on their loopback address (127.0.0.1) and wonder why they get IOCP Init errors later on.
For some reason (I was too lazy to look it up) the Game Servers do not work on 127.0.0.1
Specially the NPC server seems to duck up there. So do not try to use 127.0.0.1 as the servers address!
You can however use your private network interface address which in most of the cases is something like 192.168.XXX.XXX or 10.X.X.X unless you are part of a Domain which is another story.
To look that address up, you can do the following:
The correct entry should look smth like this:
Take the IP Address highlighted red in the example above and set it in the global.cfg file.
Now your game servers run locally and you don't need to do fancy poop with tunneling or hosting, etc.
Worth to be noted is that this address can change in certain situations. But it's unlikely. In case it changed due to changes in your network you might need to look up the address again.
Hope it helps some people fiddling with their local setup.
All tutorials for setting up servers pretty much include setting it up using hamachi. A bunch of people try setting it up on their loopback address (127.0.0.1) and wonder why they get IOCP Init errors later on.
For some reason (I was too lazy to look it up) the Game Servers do not work on 127.0.0.1
Specially the NPC server seems to duck up there. So do not try to use 127.0.0.1 as the servers address!
You can however use your private network interface address which in most of the cases is something like 192.168.XXX.XXX or 10.X.X.X unless you are part of a Domain which is another story.
To look that address up, you can do the following:
- Open the Console (cmd.exe)
- Type: "ipconfig"
- Look for the name of your network interface in the given list (it should say something with "Ethernet Connection" and could contain the name of your LAN)
- Take the "IPv4 Address"
- Enter that IPv4 Address in the global.cfg
The correct entry should look smth like this:
Code:
Ethernet adapter vEthernet (Intel(R) Ethernet Connection I217-LM blablabla):
Connection-specific DNS Suffix . : lan
Link-local IPv6 Address . . . . . : fe80:XXXX:XXXX:XXXX:...
IPv4 Address. . . . . . . . . . . : [B][COLOR="#FF0000"]192.168.1.25[/COLOR][/B]
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.1.1
Take the IP Address highlighted red in the example above and set it in the global.cfg file.
Code:
$LOCAL_IP_ADDR = [B][COLOR="#FF0000"]192.168.1.25[/COLOR][/B]
Now your game servers run locally and you don't need to do fancy poop with tunneling or hosting, etc.
Worth to be noted is that this address can change in certain situations. But it's unlikely. In case it changed due to changes in your network you might need to look up the address again.
Hope it helps some people fiddling with their local setup.