Drop unused dependencies
Changed algorithm to select IPv4 network.
Fixed problem with select replica and acceptor ports.