473,241 Members | 1,480 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,241 software developers and data experts.

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 4552
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: aspUSER2 | last post by:
hi.. I have an intranet link with me.. Where when I click to that site at the top right corner I see something written as "DSO GUEST"… the words must be hard coded at the back. And then there is...
1
by: db | last post by:
Hello, I am writing a utility to get the performance counters from a remote machine. Currently, I am usign the System.Diagnostics.PerformanceCounter class to retrieve these counters, but they...
5
by: Dave Kolb | last post by:
Is there any other solution for an ASPNET application to access network resources other than running as SYSTEM, using delegation (a nightmare to get to work) or the COM+ solution? I cannot seem to...
8
by: Rod | last post by:
I have been working with ASP.NET 1.1 for quite a while now. For some reason, opening some ASP.NET applications we wrote is producing the following error message: "The Web server reported...
1
by: iwdu15 | last post by:
hi, how can i get the icon associated with a certain file type? thanks -- -iwdu15
4
by: shashank kadge | last post by:
hi all, i am trying to get local admin users and groups on a windows server. here is the C# code that i am using...
9
by: =?Utf-8?B?UmF5?= | last post by:
Have SQL server on one machine. Have IIS on another machine in same large intranet. Have website in IIS with Basic Authentication turned on and other options deselected. Have webpage (.aspx) with...
33
by: JamesB | last post by:
I am writing a service that monitors when a particular app is started. Works, but I need to get the user who is currently logged in, and of course Environment.UserName returns the service logon...
5
by: Just_a_fan | last post by:
I can get a dump. I can send it in to M$. I can inspect it but cannot get it in my hands so I can not post it here and get comments and/or answers. Can I get hold of that dump somewhere? Is it...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.