How can i retrieve the IP address of the server my web project is running on using asp.net?
Printable View
How can i retrieve the IP address of the server my web project is running on using asp.net?
Depending on your server setup Request.ServerVariables["SERVER_NAME"] returns either the Server IP Address or the Server Host Name.
DJ