469,946 Members | 1,936 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,946 developers. It's quick & easy.

Retrieve computer name

Hi everybody,

does anyone know how to retrieve the computer name using ASP?

cheers...
Jul 19 '05 #1
4 5289
The CLIENT pc name.....Can't be done, nor would there be any valid reason.
It's a trivial text string at best that has zero guarantee of uniqueness. Go
for a login name instead.

--
----------------------------------------------------------
Curt Christianson (Software_AT_Darkfalz.Com)
Owner/Lead Designer, DF-Software
http://www.Darkfalz.com
---------------------------------------------------------
...Offering free scripts & code snippits for everyone...
---------------------------------------------------------

"Matt" <me@2me.com> wrote in message
news:eJ**************@TK2MSFTNGP12.phx.gbl...
Hi everybody,

does anyone know how to retrieve the computer name using ASP?

cheers...

Jul 19 '05 #2
having a logged in username would still be better. If a user is at a
different PC you'd get incorrect results. Besides, as I mentioned it's not
really possible. You'd have to use a clientside component or it might be
possible if you drop the IE security settings to a dangerously low level.

--
----------------------------------------------------------
Curt Christianson (Software_AT_Darkfalz.Com)
Owner/Lead Designer, DF-Software
http://www.Darkfalz.com
---------------------------------------------------------
...Offering free scripts & code snippits for everyone...
---------------------------------------------------------

"Matt" <me@2me.com> wrote in message
news:OG**************@TK2MSFTNGP09.phx.gbl...
I have just joined a company that has over 200 PCs... and have implemented a helpdesk system. Because I don't know anybody at all, it is much easier for me to identify by computer as the bulk of our users also roam from PC to PC. It is only to be used in the intranet, therefore it is a perfectly valid
reason.


"Curt_C [MVP]" <Software_AT_Darkfalz.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
The CLIENT pc name.....Can't be done, nor would there be any valid reason. It's a trivial text string at best that has zero guarantee of
uniqueness. Go
for a login name instead.

--
----------------------------------------------------------
Curt Christianson (Software_AT_Darkfalz.Com)
Owner/Lead Designer, DF-Software
http://www.Darkfalz.com
---------------------------------------------------------
..Offering free scripts & code snippits for everyone...
---------------------------------------------------------

"Matt" <me@2me.com> wrote in message
news:eJ**************@TK2MSFTNGP12.phx.gbl...
Hi everybody,

does anyone know how to retrieve the computer name using ASP?

cheers...



Jul 19 '05 #3
"Matt" wrote:

I have just joined a company that has over 200 PCs... and have
implemented a helpdesk system. Because I don't know anybody at
all, it is much easier for me to identify by computer as the
bulk of our users also roam from PC to PC. It is only to be
used in the intranet, therefore it is a perfectly valid reason.


If you truly want to identify the machine rather than the user, the IP
Address may be sufficient (even if DHCP is in use in some circumstances**).
Take a look at Request.ServerVariables("REMOTE_HOST"). All bets are off if
you're using a proxy.
**In my environment, for example, the IP Address is reserved unless the
machine is off the network for over 20 days.

--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms. Please do not contact
me directly or ask me to contact you directly for assistance. If your
question is worth asking, it's worth posting.
Jul 19 '05 #4
depending on your configuation you could use request.servervariables. Check
this out:

http://msdn.microsoft.com/library/de...om_reqocsv.asp

I don't think it will work the way you want if you have Private IP
addresses. I think if you have public IP's it will work.
--
--
In honor of Ross
--

"Matt" <me@2me.com> wrote in message
news:eJ**************@TK2MSFTNGP12.phx.gbl...
Hi everybody,

does anyone know how to retrieve the computer name using ASP?

cheers...

Jul 19 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Dan | last post: by
2 posts views Thread by Stefke | last post: by
3 posts views Thread by Bruno | last post: by
5 posts views Thread by tjonsek | last post: by
5 posts views Thread by tjonsek | last post: by
13 posts views Thread by no.mail.pls | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.