How to connect networkig player with internet

旧巷老猫 提交于 2019-12-12 04:33:41

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!