Where are you setting the location of the socket? It sounds like a case of client not being in sync with the server