WinSock does not support reporting that kind of info. You have to use OS-specific APIs instead. On Windows, that means using the Win32 API GetAdaptersInfo()
and GetAdaptersAddresses()
functions. On other platforms, you can use the getifaddrs()
function where available.
Indy does not currently support what you are asking for. Also, do note that at this time, AddLocalAddressesToList()
only supports IPv4 addresses on most platforms, including Windows.
Support for retreiving local IPv6 addresses, as well as other info like subnet masks, is currently in the works, but there is no ETA on its availability yet.