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

Khan Abrar AhmedPosted Aug 31, 2015, 8:56 AM
Subhani ShaikhPosted Aug 31, 2015, 8:44 AM
Ramchand RepallePosted Aug 31, 2015, 8:30 AM
Hi Subhani,
string myIP = Dns.GetHostByName(hostName).AddressList[0].ToString();
Subhani ShaikhPosted Aug 31, 2015, 7:56 AM
Manas MohapatraPosted Aug 31, 2015, 7:54 AM