问题
I just followed a guide about Basic UNet Tut Here, Its spawning network car player which can be controlled by local player. I can make or join server through built-in Network Manager HUD which is provided by the unity along with Network Manager component. I am able to run and connect application on my LAN on different PCs but failed to connect it on other network. I don't know what are the reasons. Do I need to make or purchase a server for it or I am doing something wrong.
回答1:
If i'm not mistaken, Unity offers free hosting for online games (There are some constraints).
- You need to login to Unity control panel and activate it.
There is great tutorial/documentation about this there.
I don't remember the specifics but basically, in your control panel you're going to get an address that you can put in your Network Manager, then you should be available to connect to your game from another network.
来源:https://stackoverflow.com/questions/41805295/how-to-connect-networkig-player-with-internet