switching local ip to use the host name instead