For the following I\'m assuming one network card.
I have a component of my program which is designed to let others in the subnet know of its existence. For this, I\
On linux, you can get the IP address of a given interface using ioctl with the SIOCGIFADDR option. I don't think this works for Windows, though. For that, you'll have to do something goofy like this.
SIOCGIFADDR