support other than localhost for websockets