[0.11.13] Connecting to MP game from same IP doesn't work

Bugs that are actually features.
Cloner
Fast Inserter
Fast Inserter
Posts: 100
Joined: Tue Dec 09, 2014 12:59 pm
Contact:

Re: [0.11.13] Connecting to MP game from same IP doesn't wor

Post by Cloner »

thul wrote:The situation describes is exactly how it is yes. Unfortunately we have 0 control over the router and we have no idea what kind of router it is either.
NAT loopback is disabled by default on most routers, and without it the Lan machines cannon connect to each other by public IP.

By the way, I think you can fool the system by rerouting IPs via hosts file on windows PCs.

For example lets assume that:

Server IP 1.1.1.1
Clients A external IP 2.2.2.2:34197
Clients B external IP 2.2.2.2:34198
Clients A LAN IP 192.168.0.1
Clients B LAN IP 192.168.0.2

Try to add the following to hosts file of client A
2.2.2.2 192.168.0.2
and the following on hosts of client B
2.2.2.2 192.168.0.1

This way when Client A tries to connect to 2.2.2.2:34198 - it will in reality connect to 192.168.0.2 even without NAT loopback.

User avatar
cube
Former Staff
Former Staff
Posts: 1111
Joined: Tue Mar 05, 2013 8:14 pm
Contact:

Re: [0.11.13] Connecting to MP game from same IP doesn't wor

Post by cube »

... i think in the end this is not a bug, but rather a limitation of the current networking. I'll move this thread to Not a bug to help kovarex in reaching his dream of zero opened bugs, but i'll be keeping this in mind for later changes of networking code. Meanwhile you can try some kind of VPN, Hamachi maybe? (does it even work on linux?)

Post Reply

Return to “Not a bug”