Unity server can not acees

I have server system running, yor usualy join server, create server all that. but when I try to put in my public IP in the create server, it work, but when I join with the IP, I can not connect. also, I can connect to the server with the new IP with 127.0.0.1. I heard that that IP is local and it works, so I have to be outside the network for me to connect to the server?

Um okay. Will I t work if I use 2 diff comps

Sorry about my horrid Speech. Anyways, I can create a server with the Local host IP, and I can join it via another instance of the game, but when I change the IP(on the server I am creating) to like.. 126.0.0.1. it creates, but I can not join it with the IP(Connect) but if I type 127.0.0.1, I can connect to the 126.0.0.1 server. Am I suppost to use my public IP then connect from a different computer?(TO sum it up, I can make a server with Ip of external, but cant connect to that server without using my internal IP. .

Where are you typing these IP addresses?! Please post some code that demonstrates the problem.

There is no code problem, its the fact I can only use my LOCAL IP to connect to a server that's on my computer, from my computer. I cant use external Ip to connect ot a server I made on a different comp... .

You can't run a client and server on the same computer. They can be on the same local network, but not on the same machine.

1 Answer

1

You need to portfoward in order to connect to the server externally.

port is forwarded