changed socket to not localhost (ip)