Undefined network name fix

Substitute the server name for a network name, when the network name is not defined.