In the action method of the request to the url "http://localhost:85458/api/ctrl/"
var baseUrl = Request.RequestUri.GetLeftPart(UriPartial.Authority) ;
this will get you http://localhost:85458
KANSIRIS - DO IT
var baseUrl = Request.RequestUri.GetLeftPart(UriPartial.Authority) ;