net: give better error messages

Add address and/or port to errors where applicable for better reporting.

See #7005
should I go ahead and actually define additions before the conditional statement or just add `port: null`?