Switching to ip instead of localhost