By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,492 Members | 1,199 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,492 IT Pros & Developers. It's quick & easy.

client user/computer identification

P: n/a
Hi,
I have read a lot of posts on the web and got no answer. Is there any chance
of geting any unique client identification data (his IP-but not proxy IP or
router or NAT, his username, his computer name, anything) to know from where
is the user accesing my aspx page.

I have to get some identfication to know on which computer in my company is
user working.
It would be easy if thet would be just intranet (REMOTE_HOST ), but I have
some computers that are outside the intranet at the other part of the city,
accessing my .net application over the web?

thanks
Mitja

Oct 14 '08 #1
Share this Question
Share on Google+
2 Replies


P: n/a
On Oct 14, 6:43*am, "mitja" <mitja.dec...@fu.uni-lj.siwrote:
Hi,
I have read a lot of posts on the web and got no answer. Is there any chance
of geting any unique client identification data (his IP-but not proxy IP or
router or NAT, his username, his computer name, anything) to know from where
is the user accesing my aspx page.

I have to get some identfication to know on which computer in my company is
user working.
It would be easy if thet would be just intranet (REMOTE_HOST ), but I have
some computers that are outside the intranet at the other part of the city,
accessing my .net application over the web?

thanks
Mitja
The REMOTE_HOST value is the IP address of the machine that requested
the page. In the intranet it is your own IP address. In the internet
this is an IP of your router/proxy and usually you will not get the
local IP address. Instead, you may get a public IP of your ISP, a
company which offers the access to the Internet. And this is not
unique.

You can try to get the computer name using the code below. This is
also based on REMOTE_ADRESS value

IPHostEntry hostInfo = new IPHostEntry();
hostInfo=Dns.GetHostByAddress(REMOTE_ADRESS);
string hostname=hostInfo.HostName;
Oct 14 '08 #2

P: n/a
"mitja" <mi**********@fu.uni-lj.siwrote in message
news:OB**************@TK2MSFTNGP04.phx.gbl...
I have read a lot of posts on the web and got no answer. Is there any
chance
of getting any unique client identification data (his IP-but not proxy IP
or
router or NAT, his username, his computer name, anything) to know from
where
is the user accesing my aspx page.
Not reliably...
I have to get some identfication to know on which computer in my company
is
user working.
It would be easy if thet would be just intranet (REMOTE_HOST ), but I have
some computers that are outside the intranet at the other part of the
city,
accessing my .net application over the web?
If you absolutely must know from which physical machine your web app is
being accessed, you could look at using client certificates...
http://msdn.microsoft.com/en-us/libr...ntcertificates
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Oct 14 '08 #3

This discussion thread is closed

Replies have been disabled for this discussion.