Fix issue when rails can't determine IP address

Websockets during local development are sending empty remote_address so rails see: Started POST "/end_point" for undefined