Fixed getting the remote ip