We help IT Professionals succeed at work.

how to get url of application on web server

Medium Priority
Last Modified: 2012-06-21
I have two applications on webserver that are as follows

/internalApp    www.internalApp.com

/externalApp    www.externalApp com

I need to get the URL of externalApp via code from the internalApp.  Normally if I was in the same app I would use

FULLPATH = Request.Url.GetLeftPart(UriPartial.Authority) + Request.ApplicationPath

However how would I do this so I can get the FULLPATH of externalApp when in the internalApp

I need to get teh

Watch Question

I'm assuming you know the url of external app and want to know its full path, working from the url?

Almost certainly security will prevent you doing this directly.

Would you be able to put something in externalapp which would respond to internalapp?  I mean a page in externalapp which will 'respond' with its full path when accessed by internalapp?

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts


Yes I see.

If think I could just hardcode the "externalApp" bit onto the


what do you think
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.