server cannot handle code with the netifaces import in it, moved it back
to config_generation.

refactored localnet function, now local_network_address.