Change socket.getLocalAddress() to socket.getInetAddress() in master