469,338 Members | 8,083 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

Getting the user's machine name

How would I go about extracting an end-user's machine name? I tried
finding the info in server variables but it wasn't there. Or would this be
a client-side solution instead? If it is, I apologize for posting to the
wrong group.

Regards,
Scott
Jul 19 '05 #1
7 4402
It's not unique so it's not often used, nor is it recommended.
I do believe it's in the Request.ServerVariables() though....
--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"Scott McNair" <sc**********@sfmco.takethispartout.com> wrote in message
news:Xn*******************@207.46.248.16...
How would I go about extracting an end-user's machine name? I tried
finding the info in server variables but it wasn't there. Or would this
be
a client-side solution instead? If it is, I apologize for posting to the
wrong group.

Regards,
Scott

Jul 19 '05 #2
The server can't access this unless it is offered, via
Request.ServerVariables("REMOTE_HOST"). Anyway this will almost always be
the network name, not the actual machine name. I think you will have to
rely on a signed applet or ActiveX control, and yes, it would have to happen
on the client.

I thought I had a FAQ on this, but can't seem to locate it.

--
http://www.aspfaq.com/
(Reverse address to reply.)


"Scott McNair" <sc**********@sfmco.takethispartout.com> wrote in message
news:Xn*******************@207.46.248.16...
How would I go about extracting an end-user's machine name? I tried
finding the info in server variables but it wasn't there. Or would this be a client-side solution instead? If it is, I apologize for posting to the
wrong group.

Regards,
Scott

Jul 19 '05 #3
More likely you'll have an IP address available in server variables and it's
hidden etc by firewalls and such...

Explaining the overall goal may lead to better suggestions...

Patrice

--

"Scott McNair" <sc**********@sfmco.takethispartout.com> a écrit dans le
message de news:Xn*******************@207.46.248.16...
How would I go about extracting an end-user's machine name? I tried
finding the info in server variables but it wasn't there. Or would this be a client-side solution instead? If it is, I apologize for posting to the
wrong group.

Regards,
Scott

Jul 19 '05 #4
"Patrice" <no****@nowhere.com> wrote in
news:uZ**************@TK2MSFTNGP12.phx.gbl:
More likely you'll have an IP address available in server variables
and it's hidden etc by firewalls and such...

Explaining the overall goal may lead to better suggestions...


I'm writing an administrative piece for an intranet app we have, that
allows an administrator to add new machines to our DB. If the admin is
running the app from the new machine, I was wanting to have the machine
name and IP auto-populated for him in the form, so he wouldn't have to hunt
down the info and enter it manually (also the person doing admin may not be
technically inclined).
Jul 19 '05 #5
I don't think you'll be able to get the machine name information from ASP...

--
http://www.aspfaq.com/
(Reverse address to reply.)


"Scott McNair" <sc**********@sfmco.takethispartout.com> wrote in message
news:Xn*******************@207.46.248.16...
"Patrice" <no****@nowhere.com> wrote in
news:uZ**************@TK2MSFTNGP12.phx.gbl:
More likely you'll have an IP address available in server variables
and it's hidden etc by firewalls and such...

Explaining the overall goal may lead to better suggestions...
I'm writing an administrative piece for an intranet app we have, that
allows an administrator to add new machines to our DB. If the admin is
running the app from the new machine, I was wanting to have the machine
name and IP auto-populated for him in the form, so he wouldn't have to

hunt down the info and enter it manually (also the person doing admin may not be technically inclined).

Jul 19 '05 #6
Try http://component-dll.aspobjects.com/...s/network/dns/
For an Intranet you should read back something quite meaningfull.
We have done something similar (but was using ASP.NET using a class readily
available) to identiy the machine from which a problem is declared...

If this is to keep and uptodate listing of all stations it could be likely
done from a central location (kind of inventory). For example if all
machines are registered in your domain, it's likely you could get them all,
or at logon time etc...

Patrice

--

"Scott McNair" <sc**********@sfmco.takethispartout.com> a écrit dans le
message de news:Xn*******************@207.46.248.16...
"Patrice" <no****@nowhere.com> wrote in
news:uZ**************@TK2MSFTNGP12.phx.gbl:
More likely you'll have an IP address available in server variables
and it's hidden etc by firewalls and such...

Explaining the overall goal may lead to better suggestions...
I'm writing an administrative piece for an intranet app we have, that
allows an administrator to add new machines to our DB. If the admin is
running the app from the new machine, I was wanting to have the machine
name and IP auto-populated for him in the form, so he wouldn't have to

hunt down the info and enter it manually (also the person doing admin may not be technically inclined).

Jul 19 '05 #7
"Aaron [SQL Server MVP]" <te*****@dnartreb.noraa> wrote in
news:u8**************@TK2MSFTNGP12.phx.gbl:
I don't think you'll be able to get the machine name information from
ASP...


I'm starting to discover that myself, by digging thru websites related to
it. It appears the tentative solution is to have a client-side script that
calls a WSH object, which would pop up the "Some objects may be harmful"
warning, but since this is the intranet that may be okay.
Jul 19 '05 #8

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by aspUSER2 | last post: by
5 posts views Thread by Dave Kolb | last post: by
1 post views Thread by iwdu15 | last post: by
9 posts views Thread by =?Utf-8?B?UmF5?= | last post: by
33 posts views Thread by JamesB | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by Marylou17 | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.