i want to write a program (client) that looks up its own wifi ip and sends it to a other pc with a known ip address (embedded board) using winsock 2.
I managed to read out all the ip addresses with "gethostname" and "gethostbyname"
but now i have no idea how to determine which address belongs to the wifi network.
i've been searching for over a hour now, hope you have some ideas