Solved

How to Get Server Name in ASP.NET

Posted on 2013-02-05
2
186 Views
Last Modified: 2013-02-26
Hi all,

Please let me know how to get server name in asp.net.  Thanks.

Regards,
Wilson
0
Comment
Question by:wclwong
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 23

Expert Comment

by:Ioannis Paraskevopoulos
ID: 38854383
Hi,

Request.ServerVariables["SERVER_NAME"] 

Open in new window


Giannis
0
 
LVL 1

Accepted Solution

by:
mgbm_it earned 500 total points
ID: 38854463
you can use
System.Environment.MachineName
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Technology Resume 7 88
disadvantage of code behind appoarch in asp.net 3 49
asp.net repeater 2 38
Send parameters via datatable ajax call 4 48
Lots of people ask this question on how to extend the “MembershipProvider” to make use of custom authentication like using existing database or make use of some other way of authentication. Many blogs show you how to extend the membership provider c…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question