SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

It is possible to display the Frontend Server IP dynamically on a SharePoint Site?

share|improve this question
up vote 4 down vote accepted

I normally add this to the master page, with a control that spits out Environment.MachineName, or just use <%=Environment.MachineName%>.

Update: I think the machine name is better, since a machine can have several IP's on different NIC's.

share|improve this answer
Thanks for your comment! great idea! But it is possible to use this command without editing the Masterpage? – LaPhi Aug 16 '11 at 8:41
You need to edit (or add a custom) the master page to get it to be displayed on all sites/pages. – Wictor Wilen MCA MCM MVP Aug 16 '11 at 9:41

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.