dedicated-0.2.8.3_rc2 w/authentication behind NAT

Post here if you need help setting up your server, etc.
Post Reply
daemon
Posts: 2
Joined: Fri Jan 29, 2010 6:41 pm

dedicated-0.2.8.3_rc2 w/authentication behind NAT

Post by daemon »

I set up a armagetronad-dedicated-0.2.8.3_rc2 behind a router with NAT. Ports are fowarded.
Authentication works fine when connecting to the server via LAN (and TRUST_LAN 1).

But if I connect via WAN and try to authenticate, i get the following error, which doesn't really make sense to me:
Login failed, reason: Server address mismatch, 1.2.3.4:5678 (sent by client) != *.*.*.*:* (our address). Pharming suspected. If you are connecting from the LAN and get this error, either set "TRUST_LAN" on the server (only if your LAN can be fully trusted, of course) or use "SERVER_IP" to make the local IP known to the server.
As mentioned before, TRUST_LAN is set. Binding the public IP isn't possible because of the router sitting in between... Am I missing something? Any ideas?

Thanks.
epsy
Adjust Outside Corner Grinder
Posts: 2003
Joined: Tue Nov 07, 2006 6:02 pm
Location: paris
Contact:

Re: dedicated-0.2.8.3_rc2 w/authentication behind NAT

Post by epsy »

You need to either have your server listed on a master server (the master will tell the server it's IP), or to set SERVER_IP to the IP your server is visible as to the client.

Otherwise the server won't know it's IP and authentication safechecks will fail.
User avatar
Phytotron
Formerly Oscilloscope
Posts: 5041
Joined: Thu Jun 09, 2005 10:06 pm
Location: A site or situation, especially considered in regard to its surroundings.
Contact:

Re: dedicated-0.2.8.3_rc2 w/authentication behind NAT

Post by Phytotron »

May as well go ahead and upgrade to 0.2.8.3 final, too, by the way.
User avatar
Jonathan
A Brave Victim
Posts: 3391
Joined: Thu Feb 03, 2005 12:50 am
Location: Not really lurking anymore

Re: dedicated-0.2.8.3_rc2 w/authentication behind NAT

Post by Jonathan »

Hmm. SERVER_IP is documented as the address it binds to. :?
ˌɑrməˈɡɛˌtrɑn
User avatar
Z-Man
God & Project Admin
Posts: 11589
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Re: dedicated-0.2.8.3_rc2 w/authentication behind NAT

Post by Z-Man »

Yeah, use SERVR_DNS instead. If you don't have a DNS name resolving to your public IP, just set the IP in there.
daemon
Posts: 2
Joined: Fri Jan 29, 2010 6:41 pm

Re: dedicated-0.2.8.3_rc2 w/authentication behind NAT

Post by daemon »

Thanks alot, SERVER_DNS did the trick.
Post Reply