473,473 Members | 1,504 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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 4557
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: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.