Solved

Showing IP addresses of web servers

Posted on 2006-07-20
4
160 Views
Last Modified: 2010-03-17
How do I return the IP address of the web server that a user is logged onto?

background

We are trying to trouble shoot a round robin load balancing solution across a farm of 3 servers.  We need to be able to see the ip address of the server that the user has logged onto.

the site is written using asp.

Lizzie
0
Comment
Question by:seahorsegirl
4 Comments
 
LVL 9

Accepted Solution

by:
owenli27 earned 500 total points
ID: 17157443
use Request.ServerVariables to get a collection include key-value, For Example:

<%
Dim x
For Each x in Request.ServerVariables
    Response.Write x & " = " & Request.ServerVariables(x)
Next
%>

LOCAL_ADDR will be IP address of the server
0
 

Author Comment

by:seahorsegirl
ID: 17165719
Thanks, I'll give that a go and let you know how I get on.

Lizzie
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
Where is my Java compiler located 3 1,728
Powershell -whatif question 4 71
Running Java application as ordinary user 24 101
Using YubiKey with REST API application 2 135
Convert websphere application server default chained Certificates from 1024 to 2048 keysize or higher size and also you can change signatureAlgorithm . Please make sure Websphere Application Server fixpack 7.0.0.23 or Above. The following steps a…
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

679 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