|
-
Oct 18th, 2005, 02:10 AM
#1
New Member
Re: [winsock] Getting the machine name on which I'm connected
You need to do a DNS reverse lookup. There is a third party control to do that: http://www.dart.com/dns.asp
Yet, with a bit more searching on the net, you will certainly a free solution via the windows API.
From the command prompt nbtstat -a xxx.xxx.xxx.xxx (Where the xxx are the IP address)
Also from command prompt: nslookup
-
Oct 25th, 2005, 04:32 AM
#2
Thread Starter
New Member
Re: [winsock] Getting the machine name on which I'm connected
Thanks for the answers.
I've found some API funktions
GetHostByName() and
GetHostByIp()
They have also solved my problem
-
Nov 6th, 2005, 10:12 PM
#3
Lively Member
Re: [winsock] Getting the machine name on which I'm connected
hi try this:
VB Code:
dim localpc as string
localpc = environ("computername")
-
Nov 7th, 2005, 09:51 PM
#4
Re: [winsock] Getting the machine name on which I'm connected
 Originally Posted by nvierros
hi try this:
VB Code:
dim localpc as string
localpc = environ("computername")
environ can be changed, dont use it.
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
|