Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7950019
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T02:08:25+00:00 2026-06-04T02:08:25+00:00

I have some issue regarding REST API which i have built using servicestack. End

  • 0

I have some issue regarding REST API which i have built using servicestack. End user will consume this API from their application hosted on their server. I’d like to grab absolute uri and IP address from which this REST API being consumed.

When i am doing testing it locally as per below then it gives me URL of REST API itself instead of application from where it is consuming.

 string str = RequestContext.AbsoluteUri.ToString();

Please how can i get details about source from where my REST API is consuming.

Thanks in Advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T02:08:26+00:00Added an answer on June 4, 2026 at 2:08 am

    I’m not sure I understand this question correctly, do you want the referrer url? or physical location path? Either way the Original ASP.NET request object should have all the information you need which you can access in your webservice with:

    var aspnetReq = (HttpRequest)RequestContext.Get<IHttpRequest>().OriginalRequest;
    

    Which you can use to access all information about the request.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hi I have some issue regarding constructor and destructor. I have list class, which
I have a weird issue. I have some icons that are being built based
I have an issue with System.Threading.Timer. I am scheduling some actions using a time
I'm using XPreformatted to print some preformated text and I have an issue with
I am having some problems figuring out this issue. I have a server that
i have a design issue regarding sending user data from a mobile phone app
I have some issue regarding display name of property in result of get request
I have an issue regarding freeing memory as under: string points; // some points
I have an other active question HERE regarding some hopeless memory issues that possibly
I have an issue with some HTML displayed in Drupal, but I am not

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.