Unable to connect online via the internet

Hey Folks,

so after wrecking my brains and looking online in various forums to research the Unity online multi player I’m at witts end.
This is how I got so far:

The basis for the code I’mworking with is a tutorial I found on cgcookie.com

I can establish and connect to the server locally on my computer and to another computer located somewhere else via hamachi.
However I’m unable to connect without hamachi.

I’m using a UMTS Stick to connect to the internet ( I don’t have any other possibilities :frowning: ). I tried running the masterserver and facilitator to have the computer ( which is located in a different country all together) act as the server and the port forwarding via the fire walls of the MasterServer Port 23466 to connect with the other machine. This did not work.

When trying to connect online I’ll get this error: Receiving NAT punchthrough attempt from target 1017813535661152305 failed

I tried to connect either via:

Network.Connect(hostData[i ]);

or:

var element = hostData[i];
Network.Connect(element.guid);

Both did not work.

When running the “ConnectGuiMasterServer” script I get a message shown in the windows stating: “Limited NAT punchtrough capabilities. Cannot connect all types of NAT servers. Running a server is ill advices as not everyone can connect.”

Do you have any idea what the issue might be ? On request I’m happy to send you the code I’m using from the tutorial.

Help would be deeply appreciated.

Dawnreaver

Be sure your firewall accepts incoming connections.

Yeah … I made in- and outbound rules for the firewall maybe I should just think about disabling it for test purposes …

Your problem is that your router blocks the NAT traversal, hence there is no connection and will be none.
you need to enable port forwarding.

might though be that its not your router but your ISP or a proxy setup that is causing it, then you are out of options and the answer is to use something like Photon Cloud and Photon Unity Networking from the Asset Store so you can remove the need for a ‘dedicated server’ that receives all the incomming connections. There you at least have a chance for it to work unless your whole UDP communication would be blocked

So it was something with the ports … I will make the life of my mobile internet provider a living hell to have the stuff sorted out :smile: Thanks for the help guys!