Fix IPs for websocket server
Remove unused exception var