|
-
Feb 23rd, 2001, 07:06 AM
#1
Thread Starter
Hyperactive Member
How can I get a remote PC's IP number. I know the PC's name.
Any idea's?
Thanks in advance for any help provided.
VB 6 Enterprise Edition SP4
ADO, SQL 7/2000, ASP and some JavaScript

>> Life goes on, but for how long? <<
If you can smile when things go wrong, you have someone in mind to blame
-
Feb 23rd, 2001, 07:36 AM
#2
Retired VBF Adm1nistrator
Well, you can use the normal winsock approach, which is not very pretty. Works great though.
I just couldnt be bothered to copy and paste.
What I am bothered to do however is tell you that you can Shell the ping command, and ping the computer's name. The response will come back from the system's IP address.
If you goto a dos prompt, and do ping www.microsoft.com, the IP responds.
So you could ping the name, pipe the results into a file, and then parse the file.
- jamie
Microsoft MVP : Visual Developer - Visual Basic [2004-2005]
-
Feb 23rd, 2001, 07:42 AM
#3
Thread Starter
Hyperactive Member
Quite new to the Winsock method, have you got any code I could have a look at that will do the trick
Thanks
Thanks in advance for any help provided.
VB 6 Enterprise Edition SP4
ADO, SQL 7/2000, ASP and some JavaScript

>> Life goes on, but for how long? <<
If you can smile when things go wrong, you have someone in mind to blame
-
Feb 23rd, 2001, 09:43 AM
#4
Retired VBF Adm1nistrator
Eh...
Well the only thing that the winsock method and the winsock control have in common is the word winsock 
They're quite different.
The winsock stuff is in fact awful.
Go to a dos prompt, and type :
ping www.microsoft.com > something.txt
then open something.txt
You should then be able to do the above programatically. If you can't .... I don't think you should be messing with winsock yet 
- jamie
Microsoft MVP : Visual Developer - Visual Basic [2004-2005]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|