fix socket url to use current host/port