Does anyone know the way to let people connect to my IP without using Hamachi? I guess I would have to port foward the port I am using(7777), but I have never done this before and I need some help with the following questions:
I have tried adding my IP(the one you find on whatismyip.org for example) to the NetworkManager’s networkAddress. Is this the correct place to add the IP and is that the right IP people should connect to?
I have tried port forwarding, I am not sure how to… does anyone have an idea if I should be port forwarding, if it works for unity and if I should be doing it, how do I do it right? If pictures are needed, let me know and I’ll provide them as soon as possible!
(After port forwarding I did manage to connect to my game with another pc in the same house, using my the IP from ex. whatismyip.org, but my friends could not connect using that IP.)
I think those are my questions for now, if anyone has tips for making an online game without using hamachi or other programs to connect, I would love to hear them!
-If it’s for your server, then yes.
-If your server is on a network behind a router, and that router uses PAT (Port Address Translation) which ‘combines’ multiple computers under one global IP address, which most residential routers do, then port forwarding will be necessary otherwise the router will refuse the connection.
Make sure you are forwarding the correct port and protocol, and you’ve made exceptions in the server’s firewall for the ports you’ll be using. If the computers in the same house are also on the same network, they may not necessarily be even going out into the internet before coming back, and so the connection is just local.
Thanks for your answer! I think this will help already, I’m going to try a couple of things and I’ll send another reply when I got it to work, or not… Thank you!