borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (how can i send file with ftp?)Next Topic (saving a file) New Topic New Poll Post Reply
AndreaVB Forum : VB General : get the computername or IP Address Solved Topic
Poster Message
humberto
Level: VB Lord

Registered: 13-01-2005
Posts: 246

icon get the computername or IP Address

Hi All,
Is there a way to get the computername or IP Address from the logged  user

For example

search for for a user (logged in the network)
and return computername or IP Address

Any help is appreciated

10-10-2006 at 09:22 AM
View Profile Send Email to User Show All Posts | Quote Reply
LFC8
Level: Scholar

Registered: 07-12-2004
Posts: 38
icon Re: get the computername or IP Address

Hi

Say there are 50 people on the network, how are you going to search (i.e. by profile name, computer name)

If by computer name cant you just use the GetComputerName API ?

If by IP Address i have a little program which you enter a IP Address and it pings, if computer is turned off then it times out!

Let me know how your searching!

HTH

10-10-2006 at 11:50 AM
View Profile Send Email to User Show All Posts | Quote Reply
humberto
Level: VB Lord

Registered: 13-01-2005
Posts: 246
icon Re: get the computername or IP Address

at the momment i use the NetWkstaGetInfo and NetWkstaUserEnum api to searching it work but take a long time with >6000 people on the network

10-10-2006 at 12:37 PM
View Profile Send Email to User Show All Posts | Quote Reply
LFC8
Level: Scholar

Registered: 07-12-2004
Posts: 38
icon Re: get the computername or IP Address

Just thinking couldnt you put all ACTIVE users into an array and then loop through the array finding the user you want?

HTH

10-10-2006 at 01:56 PM
View Profile Send Email to User Show All Posts | Quote Reply
humberto
Level: VB Lord

Registered: 13-01-2005
Posts: 246
icon Re: get the computername or IP Address

That is exactly what i do in my code, but it take to much time
with >6000 people on the network

First get all  ip adress and computername NetWkstaGetInfo
and than get the workstation info NetWkstaUserEnum

11-10-2006 at 05:38 AM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : VB General : get the computername or IP Address Solved Topic
Previous Topic (how can i send file with ftp?)Next Topic (saving a file) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder