G Guest Mar 17, 2006 #1 Hi, guys, Do we have a .net function to find out what is the IP address of IIS server? Thanks.
G Guest Mar 17, 2006 #3 thanks... Winista said: See if this helps.. http://www.netomatix.com/machineip.aspx Click to expand...
thanks... Winista said: See if this helps.. http://www.netomatix.com/machineip.aspx Click to expand...
J Juan T. Llibre Mar 17, 2006 #4 That sounds unnecessarily complicated. Just use : Request.UserHostAddress.ToString() or Request.ServerVariables("REMOTE_ADDR") Juan T. Llibre, asp.net MVP aspnetfaq.com : http://www.aspnetfaq.com/ asp.net faq : http://asp.net.do/faq/ foros de asp.net, en español : http://asp.net.do/foros/ ===================================
That sounds unnecessarily complicated. Just use : Request.UserHostAddress.ToString() or Request.ServerVariables("REMOTE_ADDR") Juan T. Llibre, asp.net MVP aspnetfaq.com : http://www.aspnetfaq.com/ asp.net faq : http://asp.net.do/faq/ foros de asp.net, en español : http://asp.net.do/foros/ ===================================
G Guest Mar 18, 2006 #5 If you look for the application host, you can use Request.Url.Host If you look for requester's IP, use Request.UserHostAddress (if the request comes through a proxy server, you might need Request.ServerVariables["HTTP_X_FORWARDED_FOR"]) HTH Elton Wang
If you look for the application host, you can use Request.Url.Host If you look for requester's IP, use Request.UserHostAddress (if the request comes through a proxy server, you might need Request.ServerVariables["HTTP_X_FORWARDED_FOR"]) HTH Elton Wang