refactor(socket): Replace socket address with machine.PublicIP