문제

Is there any way to get ip address of host on specific physical interface using winsock on Windows 7?
My computer is connected by ethernet cable with another pc and connected to router via wireless adapter. So how can I get only "wireless ip" ?, it's possible because ipconfig does that.

If winsock doesn't support it maybe there is win api to do such thing. Please help.

올바른 솔루션이 없습니다

다른 팁

You need this API:

GetAdaptersInfo

Made a loop to interfaces and get IP wanted.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top