move network lookup to utils/socket_util
Move network.interfaces logic to utils