Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Getting the user's machine name

Reply
Thread Tools

Getting the user's machine name

 
 
Scott McNair
Guest
Posts: n/a
 
      09-23-2004
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
 
Reply With Quote
 
 
 
 
Aaron [SQL Server MVP]
Guest
Posts: n/a
 
      09-23-2004
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" <> wrote in message
news:Xns956D70375AEF0sfmco@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



 
Reply With Quote
 
 
 
 
Patrice
Guest
Posts: n/a
 
      09-23-2004
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" <> a écrit dans le
message de news:Xns956D70375AEF0sfmco@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



 
Reply With Quote
 
Scott McNair
Guest
Posts: n/a
 
      09-23-2004
"Patrice" <> wrote in
news:uZcmK$:

> 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).
 
Reply With Quote
 
Aaron [SQL Server MVP]
Guest
Posts: n/a
 
      09-23-2004
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" <> wrote in message
news:Xns956D7DB0CD13Fsfmco@207.46.248.16...
> "Patrice" <> wrote in
> news:uZcmK$:
>
> > 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).



 
Reply With Quote
 
Patrice
Guest
Posts: n/a
 
      09-23-2004
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" <> a écrit dans le
message de news:Xns956D7DB0CD13Fsfmco@207.46.248.16...
> "Patrice" <> wrote in
> news:uZcmK$:
>
> > 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).



 
Reply With Quote
 
Scott McNair
Guest
Posts: n/a
 
      09-23-2004
"Aaron [SQL Server MVP]" <> wrote in
news::

> 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.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting machine name by port 137 Braulio Lima Ruby 0 01-18-2011 02:34 PM
Client Machine Name or Host name ? Anil G Java 4 01-31-2008 04:10 PM
Using DNS name verses Machine Name causes 403 error Jason ASP .Net Web Services 5 09-18-2006 07:49 AM
Getting current machine name Karen Jones Java 2 11-24-2005 06:25 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57