Home > Back-end >  Excuse me, vc how to remove the IP address of the currently being used? !
Excuse me, vc how to remove the IP address of the currently being used? !

Time:09-19




Network adapter is configured with multiple IP. I want to remove this 192.168.99.99 IP, but the use of Windows API actually has been removed is 192.168.97.99 the IP. Is the box on the left of the IP can't accurately.

CodePudding user response:

What do you use the API?

CodePudding user response:

The
reference 1/f, Simple, Soft reply:
what do you use the API?

Want to use the
GetAdaptersInfo

CodePudding user response:

The
reference 1/f, Simple, Soft reply:
what do you use the API?


GetAdaptersInfo can iterate through all the CARDS, but also don't know which one is 192.168.99.99.. If use the gethostname () and then gethostbyname (), it is 192.168.97.99 out

CodePudding user response:

Simple - Soft references 2 floor response:
Quote: reference 1/f, Simple, Soft reply:

What do you use the API?

Want to use the
GetAdaptersInfo


How to traverse the judging how 192.168.99.99 o the network card and remove the IP.

CodePudding user response:

Ipconfig -all

CodePudding user response:

reference 5 floor smwhotjay reply:
ipconfig -all


The need to do a lot of judgment
  • Related