Added getIP to network and use it in leader and acceptor.
Bugs