In the context of ASP.NET, Request.ServerVariables ("SERVER_NAME") will give
the server name and Request.ApplicationPath will give the app name (preceded
with / character)
HTH
"Leonardo Santos-Macias" <ls*********@hotmail.com> wrote in message
news:Od**************@TK2MSFTNGP11.phx.gbl...
Is there a way to get the servername and the web application name with vb
code?
i.e.
http://123.123.123.123/myapp (server: 123.123.123.123 and app my app)
http:///www.myapp.com (server myapp and app '')