MLAPI, I can't connect to my game over the internet
Okay so my game works perfectly fine when i connect to localhost, but if i try to connect through the internet it refuses to connect.
I'm using a program to port forward (isp doesnt let me for some reason) and it works everywhere else. I made a multiplayer game before with a different networking solution, and i got it to work easily.
Here you can see I have it open and it's forwarding port 7777
I have the ip and port typed in in the Unet transport component
But it doesn't want to connect. yougetsignal.com shows the port is open. I don't know what the problem is. Am I missing something?
Answer by GetLitGames · Jun 23, 2021 at 05:48 AM
I just pinged the ngrok domain name (8.tcp.ngrok.io) and at it gave a different ip address than what you are trying to connect to. You should use the ngrok domain name as the connect address instead of an ip address or make sure you ping it and use the correct IP. Also, if you try to connect to yourself using the public domain name/ip address it won't work - that only works for people outside your LAN but I think you already know this. Inside the LAN you need to use the local LAN ip address and the normal port since no forwarding would be needed.
Your answer
Follow this Question
Related Questions
Multiplayer Camera Rotation On Client 0 Answers
UNET match making without the relay server 3 Answers
Android multiplayer using WiFi 5 Answers
Unity Networking 1 Answer
UNET | How to use network messages? 1 Answer