Hi All,
I have one .net application , i hosted as virtual directory with same name in two different servers , when i using the link from UI, which ip it refers
example : http://example/webforms/frmlogin.aspx it is hosted on 10.1.1.1
example : http://example/webforms/frmlogin.aspx it is hosted on 10.1.1.2
when accesing the above link which server it is considering.
please suggest


Manas MohapatraRank #182 · 13.2K reputationPosted Aug 31, 2015, 3:54 AM EDT
Subhani Shaikh27 reputationPosted Aug 31, 2015, 3:56 AM EDT
Ramchand RepalleRank #762 · 3K reputationPosted Aug 31, 2015, 4:30 AM EDT
Hi Subhani,
string myIP = Dns.GetHostByName(hostName).AddressList[0].ToString();
Subhani Shaikh27 reputationPosted Aug 31, 2015, 4:44 AM EDT
Khan Abrar AhmedRank #778 · 3K reputationPosted Aug 31, 2015, 4:56 AM EDT