Log in

View Full Version : Question on config behind a router


Irreverent
06-01-2007, 04:10 AM
OK, I have my server behind a router. I have set its MAC address to be a basic 192.168.1.* number. So behind the router, its cake. I know we're supposed to change the 127.0.0.1 numbers in the config to our actual IP, but should it be that of the router or the dhcp ip given to it?

The problem I'm running into is that on my network all my pcs connect to the server no problem. This week, as usual, I was up in canada for work and tried to connect via laptop back to the server. I could connect to the world login, hit "play" and it tries to connect to the server. My girlfriend was at the server, watching the world.exe and it never saw a client try to reach it. Any thoughts?

Darkonig
06-01-2007, 05:28 AM
Your server behind the router is not on the Internet, it is on a local net that is not accessible by the Internet. In order to play on it from the internet, you either need to identify the router as your server and port forward all traffic to the server on your internal network or setup tunneling on your laptop to allow it to be a member of your local network from the Internet.

In either case, you want a server to have a fixed IP address, not one assigned randomly by DHCP. How you identify the worldserver address depends on which option you chose above.

Irreverent
06-01-2007, 07:55 AM
Well, it does show up on the world server list outside. So I'm curious if it's registereing with the local 192.168 address or that of the one supplied by my cable modem company. I am pretty much perma-on so it wouldn't be too hard to write a script to edit the config's .xml file to adjust the IP address prior to starting the world server. if that's all it takes, schweet.

Angelox
06-01-2007, 10:08 AM
Internet only uses whatever IP your ISP gave you - you then have to "tell" your router what machine in your LAN has the server (192.168.*.*) - You can get yourself a dynamic IP at one of the sites, so the EQEMU can find your server.

Well, it does show up on the world server list outside. So I'm curious if it's registereing with the local 192.168 address or that of the one supplied by my cable modem company. I am pretty much perma-on so it wouldn't be too hard to write a script to edit the config's .xml file to adjust the IP address prior to starting the world server. if that's all it takes, schweet.

techguy84
06-02-2007, 05:06 PM
Yep, it all boils down to port fowarding. In many places also.

The ISP normally blocks most ports for internal servers which the emu doesnt use so you dont have to worry there.

Next is your DSL/CABLE modem. Some are configurable. My DSL modem has a page where you can set up Port Forwarding to allow incoming traffic to be directed to a certain internal IP. In my case, it would be set to the router that follows after it as its the only thing that is connected to it. It assigns its connections to be 192.168.254.2 and beyond, so I point it to that IP as thats my router.

Next would be to point your router to allow incomming connections for certain ports to be pointed at certain computers. It assigns IPs like 192.168.2.2 and up. I have two computers and I use BitTorrent on both so I have set up ports 36363 to point to my laptop and 52525 to point ot my desktop, as the BT clients are set to use those ports on each computer. Next I set up ports 7000-7100 to point to my desktop as thats where my server is running.

I dont know exactly if any ports are needed to be opened with World.exe, as I have yet to have the ability to test connectivity to my server from a outside the LAN source. Some please elaborate on this. If your using the minilogin, you will need to find out what your IP is on your laptop, add it to the MySQL accounts table, and then besure to port foward 5999 in all the above locations, or what applies to you.

Also, there is firewalls that can block traffic on ports not allow by it. Although it is not good to disable firewalls, try this as a last resort if it does not work.

For the minilogin, edit your eqhost file, and tell it to point to your homes external IP. From your house go to http://www.whatismyipaddress.com/ to find out what your external IP is. Put this in your EQhost file along with port 5999. Dont know if this works exactly, but I would assume in theory that it would. Correct me if I am wrong.

I am digging deep into my network port knowledge for this so some of it may not apply to the emu, but its just kinda overall general knowledge.

Irreverent
06-05-2007, 04:07 AM
Ah crap, tried to connect in Canada again this week without luck.

I have a linksys 54wg router.

1) I changed the .xml to the server address to be what the router's ip is(also verified on what's my ip.
2) Changed the .xml localaddress to my 192.168.0.* number for my computer
3) Went to port forwarding, 5000-6000 & 7000-9000 for both protocals to go to my computer's IP address.

I didn't have any connection issues before I left internally, but it still seems to be blind to outside content.