switch localhost to internal IP