Heylo
I want to be able to get the computer name from my C# page. Is this
possible? Basically, I'm developing a auto-bugreport feature for an intranet
and want to know which machine sent the report. All machines are listed on
the workgroup and in AD.
Any suggestions?
Cheers
Dan 9 3943
Get IP, you can then reverse lookup, otherwise have you looked through the
Request.ServerV ariables collection?
--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"Dan Nash" <da*@musoswire. co.uk> wrote in message
news:46******** *************** ***********@mic rosoft.com... Heylo
I want to be able to get the computer name from my C# page. Is this possible? Basically, I'm developing a auto-bugreport feature for an intranet and want to know which machine sent the report. All machines are listed on the workgroup and in AD.
Any suggestions?
Cheers
Dan http://support.microsoft.com/default...5BLN%5D;245574
You could also get the IP and resolve it yourself using System.Net.Dns (or
seach for "Dns" in namespaces).
Patrice
--
"Dan Nash" <da*@musoswire. co.uk> a écrit dans le message de
news:46******** *************** ***********@mic rosoft.com... Heylo
I want to be able to get the computer name from my C# page. Is this possible? Basically, I'm developing a auto-bugreport feature for an
intranet and want to know which machine sent the report. All machines are listed on the workgroup and in AD.
Any suggestions?
Cheers
Dan
Request.ServerV ariables("REMOT E_HOST") will give you the machine name (if
available.)
Request.ServerV ariables("REMOT E_ADDR") will give you the IP address of the
client machine. However, the true IP address may be masked by proxy servers
so you can't entirely rely on it being unique.
--
I hope this helps,
Steve C. Orr, MCSD, MVP http://Steve.Orr.net
"Dan Nash" <da*@musoswire. co.uk> wrote in message
news:46******** *************** ***********@mic rosoft.com... Heylo
I want to be able to get the computer name from my C# page. Is this possible? Basically, I'm developing a auto-bugreport feature for an intranet and want to know which machine sent the report. All machines are listed on the workgroup and in AD.
Any suggestions?
Cheers
Dan
Hi guys,
Thanks for the replies. Remote Host just gives me the IP address 127.0.0.1
?? That's not right, obviously. What am I doing wrong? (Machine does have a
name, tis called "DANS" ... which is what I want to retrieve)
Cheers
Dan
"Dan Nash" wrote: Heylo
I want to be able to get the computer name from my C# page. Is this possible? Basically, I'm developing a auto-bugreport feature for an intranet and want to know which machine sent the report. All machines are listed on the workgroup and in AD.
Any suggestions?
Cheers
Dan
Don't test using "localhost" . localhost is a special case as it is always
the PC on which you are and will give always the same "local" IP address...
If you want to test on your own OC, use its name rather than localhost...
Patrice
--
"Dan Nash" <da*@musoswire. co.uk> a écrit dans le message de
news:F0******** *************** ***********@mic rosoft.com... Hi guys,
Thanks for the replies. Remote Host just gives me the IP address 127.0.0.1 ?? That's not right, obviously. What am I doing wrong? (Machine does have
a name, tis called "DANS" ... which is what I want to retrieve)
Cheers
Dan
"Dan Nash" wrote:
Heylo
I want to be able to get the computer name from my C# page. Is this possible? Basically, I'm developing a auto-bugreport feature for an
intranet and want to know which machine sent the report. All machines are listed
on the workgroup and in AD.
Any suggestions?
Cheers
Dan
System.Envirome nt.MachineName to get the name of the machine the error
occurred on.
bill
"Dan Nash" <da*@musoswire. co.uk> wrote in message
news:46******** *************** ***********@mic rosoft.com... Heylo
I want to be able to get the computer name from my C# page. Is this possible? Basically, I'm developing a auto-bugreport feature for an
intranet and want to know which machine sent the report. All machines are listed on the workgroup and in AD.
Any suggestions?
Cheers
Dan
Spot on. Thanks a lot Bill.
Just out of interest... Patrice, how did you mean dont use local host? I
wasn't using any IP addys? Just the line
Request.ServerV ariables["REMOTE_HOS T"];
Justwondering for future reference! :o)
"William F. Robertson, Jr." wrote: System.Envirome nt.MachineName to get the name of the machine the error occurred on.
bill
"Dan Nash" <da*@musoswire. co.uk> wrote in message news:46******** *************** ***********@mic rosoft.com... Heylo
I want to be able to get the computer name from my C# page. Is this possible? Basically, I'm developing a auto-bugreport feature for an intranet and want to know which machine sent the report. All machines are listed on the workgroup and in AD.
Any suggestions?
Cheers
Dan
If you test using http://localhost/mypage.aspx,
Request.ServerV ariables("REMOT E_HOST") will return always 127.0.0.1
If you test using http://mymachine/mypage.aspx, it will return the "true" IP
Address and you'll be able to resolve the IP to a name.
System.Environm ent.MachineName gives the name of the machine where the
application runs (ie. server side). It looks like to me you want the name of
the client side machine.
I believe you are perhaps a bit confused as you are likely testing for now,
on a single machine ?
Hope it helps.
Patrice
--
"Dan Nash" <da*@musoswire. co.uk> a écrit dans le message de
news:22******** *************** ***********@mic rosoft.com... Spot on. Thanks a lot Bill.
Just out of interest... Patrice, how did you mean dont use local host? I wasn't using any IP addys? Just the line
Request.ServerV ariables["REMOTE_HOS T"];
Justwondering for future reference! :o)
"William F. Robertson, Jr." wrote:
System.Envirome nt.MachineName to get the name of the machine the error occurred on.
bill
"Dan Nash" <da*@musoswire. co.uk> wrote in message news:46******** *************** ***********@mic rosoft.com... Heylo
I want to be able to get the computer name from my C# page. Is this possible? Basically, I'm developing a auto-bugreport feature for an intranet and want to know which machine sent the report. All machines are
listed on the workgroup and in AD.
Any suggestions?
Cheers
Dan
Incase Patrice doesn't reply....
I think what Patrice means is when you are on the same machine browsing as
the webserver, not all the same headers get sent over to the web server
side. IE I guess realizes that it is on the same machine and leaves out
some things. Like changing the IP address over to 127.0.0.1 instead of the
IP address of your machine.
This only is an issue when you are browsing and servering on the same
machine, if an issue at all. All my developers develop and test on the same
machine. I am sure Patrice just wanted you to be aware of it.
bill
"Dan Nash" <da*@musoswire. co.uk> wrote in message
news:22******** *************** ***********@mic rosoft.com... Spot on. Thanks a lot Bill.
Just out of interest... Patrice, how did you mean dont use local host? I wasn't using any IP addys? Just the line
Request.ServerV ariables["REMOTE_HOS T"];
Justwondering for future reference! :o)
"William F. Robertson, Jr." wrote:
System.Envirome nt.MachineName to get the name of the machine the error occurred on.
bill
"Dan Nash" <da*@musoswire. co.uk> wrote in message news:46******** *************** ***********@mic rosoft.com... Heylo
I want to be able to get the computer name from my C# page. Is this possible? Basically, I'm developing a auto-bugreport feature for an intranet and want to know which machine sent the report. All machines are
listed on the workgroup and in AD.
Any suggestions?
Cheers
Dan This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Jim Scheffler |
last post by:
I'm new to VB.NET programming and would like some help on a little project
I've got going.
How would I go about getting computer information on my local computer, i.e.
serial number, hard drive size, memory installed, etc. Then take it one step
further and gather this info for all computers on a network.
I really appreciate any help on this,
Jim Scheffler
|
by: Dr. StrangeDub |
last post by:
Leaving network identification/DNS out of the picture, how does one
change the name of a computer in a local Workgroup (in C#)?
I implemented the SetComputerName() API call and that only seems to
change the NetBIOS Computer Name. I've verified that the underlying
registry key value that gets changed is:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ComputerName\ComputerName\ComputerName
Is there a recommended API (via Active...
|
by: z. f. |
last post by:
i need to get the computer name from an aspx page.
i use System.Windows.Forms.SystemInformation.ComputerName()
and it's working fine,
but in second thought, it might not be recomended to use the
system.windows.forms.dll
inside an asp-dot-net code.
any information here will help.
TIA, z.
|
by: Daylor |
last post by:
hi.
i have app that im developing in my computer with vs.net 2003 (offcourse).
now, this app is running in other computer in the local intranet.
in the other computer i dont have vs.net installed , and i dont want to do
so.
(small HD and others )
my question :
|
by: ThunderMusic |
last post by:
Hi,
I want to find the computer name and the company name from the network
indentification informations.
For the computer name, I found System.Net.Dns.GetHostName(), but I fgound
nothing for the company name.
Can someone help me plz?
Thanks
| |
by: Spyder |
last post by:
When you go to "MyComputer" and get properties and select "Computer Name",
you get the Domain or Workgroup a computer belongs to.
I have looked thru MSDN library, the Internet, the Registry and in all files
on my computer and cannot find how to retrieve this information in VB.Net
2005.
This information is essential for our system implementation.
I have tried:
NetworkInformation.IPGlobalProperties.GetIPGlobalProperties
but it does not...
|
by: Lamis |
last post by:
HI,
I need to install a service that changes Host Name, computer name, on all
our machines.
I have tried to ways:
First one:
static void RenameHostName()
{
ManagementClass mComputerSystem = new ManagementClass
("Win32_ComputerSystem");
|
by: Vincent |
last post by:
I have been trying to find some API routines that will allow me to
determine the name of the computer that is accessing a file on a
server. I have found the NetFileEnum call (returns the names of the
files in use and the names of the users accessing them). I have also
found the NetConnectionEnum call (returns the name of the computer that
is accessing a share). I do not see any way of correlating the data
that these two api calls...
|
by: =?Utf-8?B?TWljaGFlbCBkZSBWZXJh?= |
last post by:
to all,
I was wondering if anyone has sample code that I can use to get information
about a computer in active directory. For example, I want to know the date
to when a computer was joined to a domain. Here is what I'm using so far but
don't get the information that I want. Any help would be greatly
appreciated. I have looked at all the various methods for resEnt but non led
me to information about my test computer.
Dim ENTRY As...
|
by: BrianT |
last post by:
I'm trying to build code that allows the computer name to be changed, then asks the user to reboot to make the change affective. I got the code working when logged in as the local computer administrator or a domain administrator, but a regular domain user (with administrator privileges on the local machine) can't run the code successfully. They get error 1219, which I believe means "Multiple connections to a server or shared resource by the same...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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 then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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 we have to send another system
| |