Get local computer IPv4 address using sockets (cross-platform, std lib)