UDP communication over cellular network - for Red Conquest

Discussion in 'Public Game Developers Forum' started by jakooistra, Feb 11, 2010.

  1. jakooistra

    jakooistra Well-Known Member

    Jan 19, 2009
    463
    0
    0
    Video Game Designer
    Canada
    Hey guys, I hope someone out there can help me.

    I'm writing the online component of Red Conquest, and we've got wifi working (firewall hole punching and all that), but as soon as we try it on the cellular network, we can't get any responses back from our servers.

    We're using UDP to send and receive data for absolutely everything, since TCP over 3G, we feel, would add too much lag to the game.


    If you have anecdotal evidence that TCP connections don't have bad latency on iphone over edge or 3g networks, please let us know your latency figures.

    If you know how to get UDP messages received over the cellular network, please let us know your technique, and what cellular provider you use. I'm in Canada and I use Fido.


    Red Conquest needs your help!
     
  2. Dave Sims

    Dave Sims Active Member

    Nov 10, 2009
    29
    0
    0
    Ireland
    Have you tried to access any other UDP services over 3G? If I was having that problem I'd write a basic NTP client for the iPhone to see if I got a response from several different time servers.
     
  3. jakooistra

    jakooistra Well-Known Member

    Jan 19, 2009
    463
    0
    0
    Video Game Designer
    Canada
    A quick STUN server request returns just fine from stunserver.org. :)

    This means it's a problem with our server reply code. :(


    thanks for suggesting such a simple test, I've been so frustrated I can't think straight. :)
     
  4. Dave Sims

    Dave Sims Active Member

    Nov 10, 2009
    29
    0
    0
    Ireland
    No problem, I've been there before. Best of luck with the multiplayer.
     
  5. bravetarget

    bravetarget Well-Known Member

    Sep 14, 2009
    330
    0
    0
    Wish I could help. Anything that speeds up the multiplayer update to Red Conquest would be awesome as I've been anticipating it ever since you guys put it in the app description.

    If you can't figure out whats wrong w/your server, just throw in UIRequiresPersistentWiFi to info.plist and submit. :p
     
  6. khangtoh

    khangtoh Well-Known Member

    May 31, 2009
    302
    0
    0
    Co-Founder/IPhone Dev @ LeftRight Studios
    Pittsburgh, PA
    Just wanted to post my opinion on supporting 3G. Is this really needed? We had wanted to support 3G and Wifi but later decided to just go with Wifi just because the nature of usage for people on 3G is that they're outside and on the move. So disconnection due to cell tower switches does cause a bad gaming experience to players. Just something to consider.
     

Share This Page