Connecting to a public IP

I’m trying to connect to a public IP using the network manager and network manager UI.
I’ve been told that when you press LAN Host, that it’s also an online host. And pressing LAN Client(c) will also connect to a public IP.
I did all the port forwarding stuff, I can connect to my own public IP but others cannot.

Every single Unet example and tutorial i can find all connect to their localhost… Which to me is useless.
Is there any example anywhere of a super simple connection between two online players without using the match maker?

What you described should be working.

I know you sound like you know what you’re doing, but just to be clear, the public IP address should be the Internet facing IP address of your router. Not the address on your computer, or the address of your router that is on the same subnet as your computer’s IP. Also that you are port forwarding UDP specifically, not TCP (unless WebGL I believe).

Also you need to be sure that you’re not on a network that is implementing any kind of filtering, which would prevent you from hosting a service. Lots of University and private company networks implement that kind of thing. Also make sure you don’t have software firewall settings on your computer itself preventing outside connections for your game or on that port.

All the tutorial examples connect to localhost because it is really no different then connecting to a remove IP address, except then you’re involving a whole bunch of firewall and port forwarding settings and the steps differ depending on your router model, operating system, and generally what kind of network you’re on.

An excellent answer thanks.

I’m glad that I sound like I know what I’m doing lol.
I tried every single IP i could find that was connected to my PC. Not my local network IP obviously.
I’m port forwarding both UDP and TCP… Would port forwarding TCP as well cause problems?
I’m not at school or work, just a normal router at home. I disabled anti virus just to be sure and allowed windows firewall to open ports when the game is first opened.

Port forwarding TCP in addition to UDP won’t cause problems. If you have an extra laptop I’d try connecting to your server yourself, either tethered through a phone or down at your local coffee house. It could be a user error on the part of whoever you have trying to connect to your server.

Now that I haven’t tried yet, I’ll give that a go when I get home.
We tried hamachi as well which didn’t work =/

try to avoid VPN and proxies when trying to locate network issues. Those will often mostly add to the confusion rather than help resolve it.

1 Like