see #15229 - deprecate all Main methods related to network features. New NetworkManager class
Main
NetworkManager