@bill chadwick Below is the response received from our product group on your queries.
Q: Why is there no way to determine the Ethernet IP address from the command line tool?
A: This is a good design change request, thank you for the feedback.
Update:
Q: It seems odd that Networking_SntpServer_Start can accept an interface but we do not seem to have a way for specifying an interface for a TCP server (or generic socket). Is there a reason for this restriction or have I done something wrong or missed something? ... Why does setsockopt to specify an interface not work? (especially when the NTP server can be started on a nominated interface)
A: You cannot use SO_BINDTODEVICE due to security issues with allowing CAP_NET_ADMIN or CAP_NET_RAW. Instead you can query for the IP via getifadddr and bind to this IP on the interface of choice as show in https://github.com/Azure/azure-sphere-samples/blob/b26a88e8ee2fba679f4d28a3184b4d0c95ad5547/Samples/PrivateNetworkServices/echo_tcp_server.c
Q: Can you please also suggest a way that the IP address of both interfaces might easily be determined programmatically
A: getifaddrs()
Please let us know if you have any further queries.
If an answer is helpful, please "Accept answer" or "Up-Vote" for the same which might be beneficial to other community members reading this thread.