Tasharen Entertainment Forum
Support => TNet 3 Support => Topic started by: thenick191 on February 03, 2015, 02:51:27 PM
-
If I run a game on my computer then another client on my same machine I can connect both just fine to the locally run game server. However, if I go on another computer on my network and start a client, then try to connect to that client I get an "Unable to connect" error. The firewall is off on both machines. The firewall is also off on my router. Any tips? Do I have to forward ports for every game I start from the router? I really hope there is another way.
-
anyone? please?
-
What IP are you using? 127.0.0.1 always points to the machine you're running it on. You need to specify the IP of your other machine that's hosting the server.
-
Here's the connect that I do:
TNManager.Connect(externalIP, internalIP);
I get the IP objects from the lobby client known servers. I'd assume this would be the better solution so it knows at computer on the network has the server without port forwarding
-
Yes, that's fine, but it can fail if:
1. The router doesn't allow loopback. This causes 'externalIP' connections to try to connect to the router instead of your PC.
2. You have a firewall that's blocking inbound connections. Commonly happens with anti-virus software.
-
Ah okay, I'll try testing with computers on different networks. I hope that it's just that simple and will work!
Thanks!