Server problem (FIXED)

Forum Archive - from http://theuniversal.net
Locked
User avatar
paintballkev812
Posts: 210
Joined: Tue Oct 04, 2005 12:25 am

Server problem (FIXED)

Post by paintballkev812 »

Well i found out a way to have others connect by adding "EXTERNALIP=71.114.187.36" in my system config file, but when i do i can't connect to my world by crashing into nor by using the "your world" shortcut. If i take out "EXTERNALIP=71.114.187.36" then i can connect, but no one else can (except marshall somehow got on once earlier today). Anyone know what to do?
Last edited by paintballkev812 on Sat Nov 12, 2005 2:44 pm, edited 2 times in total.
theseer
VIP
VIP
Posts: 782
Joined: Sat Dec 04, 2004 9:50 am

Post by theseer »

http://theuniversal.net/forum/viewtopic.php?t=3281

and >_>

Edit: Also, how are "others" connecting when you add external IP?
Last edited by theseer on Tue Nov 08, 2005 10:53 am, edited 1 time in total.
User avatar
Fooli
Staff
Staff
Posts: 1957
Joined: Sun Oct 05, 2003 2:38 pm
Location: Mars

Post by Fooli »

Sounds like your PC's on a LAN, or behind a NAT-ting firewall/router to me.

Here's my usual guess at a solution. Keep the external IP entry in your server config: without it, your world will be broadcasting an internal IP (eg 192.168.0.1, or something), which is why no-one else can connect but you can (because you're on that network). So, add the external entry, and everyone else can connect. Fine. Next you need to do a little jiggery-pokery to enable you to connect to your world too.

Add a file called reroute.txt to your clients/data folder. In it add a line like this:

a.b.c.d:eeee=127.0.0.1:eeee

where 'abcd' is your external IP address, and 'e' is the port your world is running on. If you're not specifying a port for your world you could try the same entry in rereoute.txt without the port, though I haven't ever tested that.

Anyway, save that text file; relog and see if it helps. It ought to means your client software will intercept all calls to your external IP and rereoute them back to itself.

f
User avatar
Magicfinger
Staff
Staff
Posts: 1078
Joined: Tue Sep 30, 2003 10:38 am
Location: here,there and everywhere

Post by Magicfinger »

i have to use the reroute.txt in order to overcome the issue you described... it doesnt work without a port (or didnt last time i tried), set your port in the serverconfig file and try to use the higher end of the port ranges as seems to be more sucessful.
User avatar
paintballkev812
Posts: 210
Joined: Tue Oct 04, 2005 12:25 am

Post by paintballkev812 »

theseer wrote:http://theuniversal.net/forum/viewtopic.php?t=3281

and >_>

Edit: Also, how are "others" connecting when you add external IP?
Don't think i understand your question, but they just fly into the planet named Paint's Plaza
FINALLY IT WORKS
Last edited by paintballkev812 on Tue Nov 08, 2005 10:54 pm, edited 1 time in total.
User avatar
zaroba
World Owner
World Owner
Posts: 7257
Joined: Fri Oct 10, 2003 11:06 pm
Location: Hereford, PA
Contact:

Post by zaroba »

theseer wrote:Edit: Also, how are "others" connecting when you add external IP?
adding an externalip=whatever line to the server config is needed on servers that are hosted on pc's that connect to the internet threw a router/hub/switch because without the line, the server will only look for clients connecting to the pc's network address and thus only allow clients to enterif they are in the network. with the externalip line added, the world will look for clients trying to connect on the real ip address.

can see Guide to setting up your world on a routed network. for more detailed info on setting this up.
User avatar
paintballkev812
Posts: 210
Joined: Tue Oct 04, 2005 12:25 am

Post by paintballkev812 »

well its partially fixed. People can join if i havent joined since the last time i reseted the server, but if i get on then someone else tries to get on after me they cant until i reset the server.... Anyone wanna take a shot as to what the problem is now?
Locked