Network with Master Server
by John Mooney · in iTorque 2D · 06/15/2009 (11:04 am) · 4 replies
I've been working on implementing networking for my game, and everything is working except for hosting a game. I've found that when I host a game, I can only find it in the LAN section unless I configure my router to forward the port being used to the computer hosting the game. If I do the port forwarding, then others can find my game. This seems impractical for an iPhone game since most users aren't going to know the IP number of the phone and many people will want to use the phone at public hot spots. Is there any way to host a game with setting up port forwarding?
I also found that I couldn't connect to the master server when using the 3G data plan, but only when using a WiFi connection, which I assume is a limitation on the data plan.
I also found that I couldn't connect to the master server when using the 3G data plan, but only when using a WiFi connection, which I assume is a limitation on the data plan.
About the author
#2
06/15/2009 (12:41 pm)
So, are you saying you can't even connect at all with 3G? I'm thinking of designing an online game that doesn't require absolute "real-time" speed. Even a 5-second delay is tolerable for my game.
#3
But how well it works and stable it is highly depends on the operator.
The same holds for data streaming like this in general and if it is possible at all.
06/15/2009 (12:44 pm)
You can connect at 3GBut how well it works and stable it is highly depends on the operator.
The same holds for data streaming like this in general and if it is possible at all.
#4
When using the wireless network, it finds the master server, but it can't seem to find any of the hosted games. I've only been able to get LAN games to work.
If I do the same test on computers and do port forwarding for the computer hosting the game, everything works. I've had no luck getting master server to work with the iPhone even when doing port forwarding.
06/15/2009 (3:45 pm)
I couldn't get the phone to connect to the master server at all when using 3G. The server didn't output anything about the connection, and the phone says no master servers found.When using the wireless network, it finds the master server, but it can't seem to find any of the hosted games. I've only been able to get LAN games to work.
If I do the same test on computers and do port forwarding for the computer hosting the game, everything works. I've had no luck getting master server to work with the iPhone even when doing port forwarding.
Torque 3D Owner Marc Dreamora Schaerer
Gayasoft
Most iphone games are already hard to play in wifi due to the low performance, but totally unplayable on 3G with their up 1s latency