[Tutorial] Run Servers locally WITHOUT using Hamachi / etc.

Results 1 to 1 of 1
  1. #1
    [Tutorial] Run Servers locally WITHOUT using Hamachi / etc. Future is online now
    SupervisorRank
    Dec 2011 Join Date
    1,914Posts

    [Tutorial] Run Servers locally WITHOUT using Hamachi / etc.


    RaGEZONE Recommends

    RaGEZONE Recommends

    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 fuck 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:

    1. Open the Console (cmd.exe)
    2. Type: "ipconfig"
    3. 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)
    4. Take the "IPv4 Address"
    5. 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. . . . . . . . . . . : 192.168.1.25
       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 = 192.168.1.25
    Now your game servers run locally and you don't need to do fancy shit 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.


    Quote Originally Posted by A Wise Man
    P-Servers are NOT dead. Bugs need squishing. Quests need fixing. Unfortunately, majority of people don't know the difference between a computer and a toaster so...





Advertisement