1

How can I get current system IP using c under window XP.

Dummy00001
  • 16,630
  • 5
  • 41
  • 63
Siddiqui
  • 7,662
  • 17
  • 81
  • 129
  • 1
    Does 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

0 Answers0