In short you are probably assuming too many things. Client and server are autonomous systems and they have to be treated like that.