-
June 9th, 2011, 05:17 AM
#1
Username -> Hostname/IP
Hello,
Inside a network (where username is unique) how can i convert a username to an ip? A method once existed using net send and netstat. Just can't find anything which can be used to establish a unique port to a computer using a username.
Is there any other methode of doing that or some script which is able to do that?
Thanks,
Gabriel
-
June 9th, 2011, 10:08 AM
#2
Re: Username -> Hostname/IP
What kind of NETWORK? You mean, like THE INTERNET?
Inside a network, Active Directory can find computer information.
Ping gives a MACHINE NAME (with -a option).
How are you getting the USER NAME?
-
June 10th, 2011, 09:56 AM
#3
Re: Username -> Hostname/IP
I am not aware of anyway to query a network and get the Home IP address of a machine based on a userID, unless of course that user is currently logged into your program via IP from the workstation in question, in which case the remote IP will be the users IP. Still the username has nothing to do with it.
Always use [code][/code] tags when posting code.
-
June 12th, 2011, 01:28 AM
#4
Re: Username -> Hostname/IP
hey,
no. the machine is also connected to the internet, but i'm talking about a network which is managed by a DC server (active directory) and has a unique username (no 2 usernames). i can resovle (theoretically) the user name if the machines were windows xp with a "net send" command, but with the new "msg" command, it does not seem to find the user name.
-
June 12th, 2011, 01:29 AM
#5
Re: Username -> Hostname/IP
Originally Posted by DataMiser
I am not aware of anyway to query a network and get the Home IP address of a machine based on a userID, unless of course that user is currently logged into your program via IP from the workstation in question, in which case the remote IP will be the users IP. Still the username has nothing to do with it.
There are work-around like (in win XP) the net send command and then the netstat command to find open netbios but in that case it is able to send a message to the user with only a username and create a conversion into an IP address.
would love something like that but the new msg command in win7 can't seem to send the message with a username...
-
June 12th, 2011, 01:01 PM
#6
Re: Username -> Hostname/IP
-
June 13th, 2011, 01:00 AM
#7
Re: Username -> Hostname/IP
Excuse me for being ignorant, but how does PowerShell allows me to resolve 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
|