Additional methods for obtaining IP addresses in TCPConnect
I have added GetIPOfInterface and AutodetectPrivateInterface functions to TCPConnect. GetIPOfInterface takes an interface name (eth0, enp0s3, etc) and returns the IP of that interface, or 0.0.0.0 if no match was found. AutodetectPrivateInterface searches for an interface with an address on a RFC 1918 private network. It will return, by preference, a 192.168.0.0/16 address, 172.16.0.0/12, 10.0.0.0/8, 18.104.22.168/16, 0.0.0.0.