- Home /
[Closed] UNET replaces my set IP with localhost
I completed the Unity Multiplayer Tutorial with Unity 2018.1, I just replaced the Adress setting with my own IP. After starting the builded game it looks fine but then Unity automatically replaces my IP with 'localhost', the same happens if I want to join as a client. I can't figure out what is wrong, would be great if anyone would know an answer.
what do you mean by automatically? have you programmed starting a server, client or host, or are you pressing the buttons?
I know its a long shot but did you figure this out? I see the network manager doing the same here. @Serkonda
that wasn't an answer, so I made it a comment
Answer by hexagonius · Jan 10, 2019 at 06:25 PM
Since @billybob1978 make me aware of this post again I look into it again and found the reason. The second screenshot show's a Stop button. If that was a client it would have said disconnect so it must be a server with a client connected, hence, host. And a server is ran on that instance, meaning, it's a localhost. localhost in this case means 127.0.0.1 and can be accessed on the same machine. If you were to connect from another you'd need the IP Address of the machine. Then the port comes into play and it does not matter what the machine the server is running on is showing.