Change sockets to use localhost