VB 2008 Get Local IP Without Winsock

preview_player
Показать описание
This program will get your local IP address and display it without using the Winsock control. If you liked this video, please comment, rate, and subscribe!
Рекомендации по теме
Комментарии
Автор

@MagicalFlump You must be using Windows Vista or 7 then. You must change the value number in GetValue(0) to GetValue(3).

CyberCodeFreak
Автор

@y0un3xt Sure it is possible. Just ping each IP address and when you get a response from an IP address, display the IP address(es) in a textbox, listview, combobox, etc..

CyberCodeFreak
Автор

@RayPrograms Excuse me, not GetValue(3). Change it to GetValue(4). And yes, changing the value does in fact work.

CyberCodeFreak
Автор

@TheNextEditing It will be different for each person, depending on the system they are using. For instance, I have multiple ethernet ports on my system and I can see each one b y changing the value.

CyberCodeFreak
Автор

This program will show the specified IP in the GetValue() array.... say I have a few Virtual Machine adapters... how can I find out which is my actual internal IP for my Ethernet Adapter, assigned by my router?

vahnfish
Автор

@CyberCodeFreak
where do I ping the addresses?in VB or cmd prompt?

nat
Автор

I want my application to for instantce, "Hey! Your IP is 192.168.1.9!" Using code, how can I parse through the GetValue() array and figure out which address is the primary adapter?

vahnfish
Автор

@CyberCodeFreak changing the value doesn't work

RayPrograms