using ajax to set websocket clinet's IP