So far I have a system of where players can login to my game and they can walk around and talk and everything. Theres only one problem, players must be on my home network to play. How would I make it so that anyone in the world can play? Also I downloaded SmartFoxServer but I don’t know how to use it. I am thinking that you would some how accomplish what I am trying to do using the smartfoxserver. I don’t really know. And any time I try to ask a question about networking people explain in very badly. If I understood what they were saying I wouldn’t be asking this question. Thanks for your help!
You know how to use networking, but just don’t know how to make it so others can play?
If that’s the case, then it’s simple!
Check if your IP is “static” or “dynamic” (static stays the same, dynamic changes).
If you are static, then hop onto
And get your IP. Next, make sure your firewalls (software, and router) are port forwarded to use a port that you want, avoid using ports listed here:
Now just use Network.Connect(yourIPHere, yourPortHere);
If your IP is dynamic, you can use the same method, but you need to release an update everytime your IP changes (which is just unreasonable), so get a DNS name:
Register there, and make a new host. Now use that host (example: myhostname.ath.cx) as the ip:
Network.Connect(“myhostname.ath.cx”, myportHere);