Link to home
Start Free TrialLog in
Avatar of Ryan_R
Ryan_RFlag for Australia

asked on

Winsock IP address query (multiple)

I want to make a VB6 app that can
a) show my computer name and IP Address and
b) show IP Address and comp names of other PCs on the network
c) query a single comp name/IP address as typed in by user

A and C should be easy enough to figure out, but what about B?
do i need an instance of this program running on connected PCs to do it or can i use something else, even if i wasn't connected to LAN when system booted up - connect to sitch later?

solution + VB6 coding would be appreciated
(also, sometimes my IP address appears as real IP address (168.192.100.1) and sometimes as lookback adapter (127.0.0.1) depending on what pc i run program on. Why is it so and how can i fix it?)

Thanks - Ryan R
Avatar of Ryan_R
Ryan_R
Flag of Australia image

ASKER

so if i clicked a button on my form a list box would be filled with all the IP addresses and names on my network
SOLUTION
Avatar of Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3]
Flag of Luxembourg image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Ryan_R

ASKER

ok so far so good.
how about using this on different networks?
ie Domain, Workgroup, and Novell Client/Server network on top of Win XP?
Avatar of Ryan_R

ASKER

saved links to HDD - will review them when i have more time
until later, ryan
Avatar of callrs
callrs

Hi Ryan. Please see http://www.geocities.com/callrs/eeDeleted.htm & reply by email if you can get cached copy. Thanks.
Avatar of Ryan_R

ASKER

can't get geocities at school: banned, will try later, thanks
Avatar of Ryan_R

ASKER

sorry i've completey forgotton about this post guys, will endeavour to try out solutions soon and accept an answer.
Avatar of Ryan_R

ASKER

http://www.freevbcode.com/ShowCode.Asp?ID=703

i have tried this example with no success, when i use the listbox.add command or any command to view the data (ie msgbox) i get the error Type Mismatch.

any ideas
Avatar of Ryan_R

ASKER

and while im at it already was using winsock for local ip as stated somewhat in original question

http://www.devcity.net/forums/faq.asp?tid=1712 (as found in https://www.experts-exchange.com/questions/21858688/use-winsock-to-retrieve-all-IP-in-the-network.html)
tried this also without success - the error i belive being on the line of code where it reffers to something.ADODB or something - was i supposed to add a reference or something in my project for this example

if i can get your ideas on this and get it working then i can easily accept an answer here - thanks everyone
Avatar of Ryan_R

ASKER

ok i have had limited success with a few suggestions now so i think it's feeding time at the EE zoo (yippee)
thanks for all your help
Avatar of Ryan_R

ASKER



it's not possible to list PCs that are not in my workgroup, is it?