Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Display local IP address on Intranet site

Status
Not open for further replies.

campbmb

Technical User
Apr 26, 2007
18
US
When someone in the company goes to our intranet site, I'd like their local/internal ip address and computer name to be displayed - just for them to see. It would be a fast way for IT (if working with the person on some problem) to have the person find the info (lots of computer illiteracy around here). But all the code I find is to display the external IP address. Does anybody know how to do this? Thanks in advance.
 
Ive used this before. It puts the ip in the lower left corner of the bottom browser bar. It needs to be between the <head></head> tags and it needs to be an .asp page.

Code:
<head>
<script type="text/javascript">
var sIpAddress = "<%= Request.ServerVariables("REMOTE_ADDR") %>";
window.defaultStatus = sIpAddress;
</script>
</head>

Hope this helps,

RoadKi11
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top