How to find IP Address of server in loadbalancing Environment

Posted by Abhisekjani under C# on 7/25/2012 | Points: 10 | Views : 2330 | Status : [Member] | Replies : 2
Hi....
We are using load balacing server environment which has two server 01 and 02.i am unble to find the server ip address
I am using the following code to fetch the server address but it shows the load balancing server ip address but i want to fetch the original server ip address

string strHostName = System.Net.Dns.GetHostName();
IPHostEntry ipHostInfo = Dns.Resolve(Dns.GetHostName());
IPAddress ipAddress = ipHostInfo.AddressList[0];
string myIP = ipAddress.ToString();
please help in this i want to fetch the original IP adddress




Responses

Posted by: Ranjeet_8 on: 7/25/2012 [Member] [MVP] Gold | Points: 25

Up
0
Down
you can only get the ip address of loadbalancer using hard code.
so plz contact to the server management team.
he will tel u d ip address of those server.


Abhisekjani, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Tomm1 on: 8/1/2012 [Member] Starter | Points: 25

Up
0
Down
You can get the IP address and the location of the server using
the site ip-details.com. It gives the ip address,
location details,country, ISP, Latitude, Longitude and the location
map.

Abhisekjani, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response