Reconnecting to games question >

Discussion in 'Support!' started by maxpowerz, November 5, 2013.

  1. maxpowerz

    maxpowerz Post Master General

    Messages:
    2,208
    Likes Received:
    885
    I use a mobile 3g modem (its fine for gameplay its bandwidth is high enough)
    But when i lose signal and drop out of a match then try to rejoin after my signal returns i'm not offered the rejoin match windows to rejoin my previous match (usually against AI)
    ...
    My end when i lose signal and regain signal im usually reassigned a new WAN IP address.
    does the game use my IP addresses as a reference to scan which game i was in last by cross referencing my ip against ip's that were in a game??
    or is it a combo of username and ip
    or just user mane ??
    I'm not sure if i should report this as a bug or if it is just the way the server client things are handled at the moment :)

    (If my IP doesn't change i have no issue rejoining games!! the dialog box to rejoin last match appears)
  2. warrenkc

    warrenkc Active Member

    Messages:
    542
    Likes Received:
    191
    I found that if I get a disconnect and want to the reconnect just logout in the game and login again. It should prompt you to rejoin.
  3. maxpowerz

    maxpowerz Post Master General

    Messages:
    2,208
    Likes Received:
    885
    this only happens when my IP changes, My WAN IP as "Dynamic" and constantly being reassigned when a reconnection occurs to the ISP network.
    this happens to me in game sometimes (games tend to go for a while in some cases)
    i was just curious if there may be a work around.
  4. SXX

    SXX Post Master General

    Messages:
    6,896
    Likes Received:
    1,812
    There is trick for this, but not sure how to implement it on Windows. If you freeze PA process right after connection lost and keep it frozen until connection restored game will back to normal without need to restarting. :)

    I made it when I have very same problem: PA#1639
    I'll check how it's work when IP change.
    maxpowerz likes this.
  5. kryten42

    kryten42 Member

    Messages:
    34
    Likes Received:
    1
    I don't think that will work when the OPs WAN IP changes. When that happens I think there is no way for the server to know that you are the one who just disconnected. Maybe they could implement something like cookies in a browser to get around that problem, but I am not sure if that is possible.
  6. maxpowerz

    maxpowerz Post Master General

    Messages:
    2,208
    Likes Received:
    885
    SXX states in his Bug report that his IP change when the ISP reset connection on daily basis, lots of Australian ISP's do this as well for landline, connection is reset one time daily or one time weekly to reassign a new WAN IP.
  7. Clopse

    Clopse Post Master General

    Messages:
    2,535
    Likes Received:
    2,865
    Cola_colin maybe able to help with this. I think he looked at this when he was working on reconnects in pa stats. As far as I know it used the unique user name to reconnect.
    maxpowerz likes this.
  8. maxpowerz

    maxpowerz Post Master General

    Messages:
    2,208
    Likes Received:
    885
    Also when this happens on 3g or mobile internet it harder to predict when it's going to happen to prepare for freezing the gamestate,
    sometimes i don't know i have dropped out until i get kicked to main menu, then i leave game to see i have limited connection icon, this only last for few second to a minute most cases.
    And almost every time im reassigned a new WAN IP.
  9. maxpowerz

    maxpowerz Post Master General

    Messages:
    2,208
    Likes Received:
    885
    Thank-you i will contact him and ask for his opinion on the topic too.
    I know very little about the inner working of the game still.
  10. SXX

    SXX Post Master General

    Messages:
    6,896
    Likes Received:
    1,812
    Yeah you're right, just checked it with IP change and game wasn't restored automatically. But I still able to close PA windows, run it again and reconnect to game.

    So at least normal re-connection is not depend on used IP.

    Actually when you froze process it's don't even know it's frozen, so there is no "disconnection" for server.

    PS: To be sure I'll try it though VPN soon. :rolleyes:
  11. kryten42

    kryten42 Member

    Messages:
    34
    Likes Received:
    1
    Well that might be, but it would still have the old IP adress stored then too and would try sending all the packets there...so my guess would be that you would just losse connection instantly to the game server when you unfreeze it.

    EDIT: But it should be possible to make rejoining after an IP change work. Since you have to log in with your account to play, the game should know by then that you have a new IP and so the server could know it too. I only know networks but not coding, how hard can that be to implement?
  12. mered4

    mered4 Post Master General

    Messages:
    4,083
    Likes Received:
    3,149
    Pretty much every game I have played so far has ended with a connection to server lost bug. Usually right in the crucial stages of the endgame too. Cannot ever reconnect, even trying all this stuff. :( Not sure if its my IP, but I run Ethernet straight to the college systems, I have no idea how they route it after that.
  13. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    When you log in the game makes a call to the backend and queries if there is a game that you should be in. The game is referenced with a lobbyid that has nothing to do with your IP.

    The reason why you need a restart for this is because it makes the call when you log in and only in that case. If you are logged in already it wont be executed. I think the system btw works fine even after reconnects with a new IP. Gonna recheck it...

    EDIT: Weird in my test vs AI it did not work. However I am very certain that I had ISP new IP reconnects while playing already and it did work then. So this might be because it was a game vs AI: The server might decide that no human is playing anymore and quit before you reconnect.

    EDIT 2:
    Yes I think it is indeed the server that just closes the game before you have a chance to reconnect. I just alt f4'ed out of a vs AI game and restarted PA 3 minutes later. My connection was untouched, I was not offered a reconnect either.
    3 min is the time it took my router to restart and get a new IP in the test before. So I guess the changed IP has nothing to do with it. It's the time without any human on the server that becomes to long.
    Last edited: November 6, 2013
    Clopse likes this.

Share This Page