Get network interface name and server address automatically