Update net.cpp with auto-discovery nodes

Entered the new auto-discovery methods for the network