How can I get current system IP using c under window XP.
Asked
Active
Viewed 513 times
1
-
1Does window XP allow you to have several network cards installed? – pmg Oct 20 '10 at 12:10
-
@pmg: yes. generally one tries to find an interface which is used for default gateway (0.0.0.0). if there is no default gateway configured, then no, there is no "system IP" address. – Dummy00001 Oct 20 '10 at 12:13
-
1@Andrey: Windows is supposedly supports the `getaddrinfo` thus I too consider that as a dup. – Dummy00001 Oct 20 '10 at 12:21