I am creating a chat room / gaming lobby where people connect to find other players. I have done my scripting with the aid of localhost(127.0.0.1) and now I am wondering: How do I make my server accessable through the Internet? Can it be done using Unity3D alone or do I need 3rd party server software? I have made the scripts so that both client and server are run on Unity Standalone or Webplayer.
I’m using the connection script/gui from Leepo’s tutorial… And my game works over the Internet, so long as I host the server, and forward port 25001 on my router.
you would have to use ideally a static ip and forward all unity traffic to the host computer or place it in the DMZ of your network (you need to know your local ip for any kind of forwarding), but you can use a dynamic ip as well but when your isp auto change your ip things will need to be adjusted
Or another way to keep things local is use the ip’s assigned by your router, for windows you can find it by typing ipconfig in cmd.exe
Or in osx type ifconfig to find your local ip address
Ok this will blow your mind but Portforward and give your players your External IP if you need help with that let me know I just got some Online multiplayer action working a few weeks ago…
Oh it was that simple, just a matter of entering the IP address. Im glad I dont have to setup a proper server. Thank you for your help. Boco thank you for the offer but im good for now :).