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 983585
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T04:52:53+00:00 2026-05-16T04:52:53+00:00

Is it possible to specify the IP address a WebRequest should use when creating

  • 0

Is it possible to specify the IP address a WebRequest should use when creating a connection to a remote resource? For example, I have an MVC 2 website which runs on IP 0.0.0.10, but the server has 0.0.0.1 - 0.0.0.10 assigned to it. In the website there is a class that will be initialized based on user input and it will create requests to remote resources.

The problem I’m having is that the WebRequest is most likely using 0.0.0.1 as it is the first IP of the server instead of the IP of the website, thus causing requests to be blocked from remote resources that filter by IPs…

So, is there a way to specify the IP the WebRequest should use when performing the request. Alternativelly, it doesn’t have to be a solution for WebRequest, it can be a solution for HttpWebRequest, or if need be something else. If I have to I will alter the code for the requests/responses.

Anyway, help would be much appreciated! 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-05-16T04:52:54+00:00Added an answer on May 16, 2026 at 4:52 am

    I think you want to use the HttpWebRequest.ServicePoint to specify a particular IP address to use for the request. See the MSDN doc, or better yet, Malar Chinnusamy’s blog post that seems to be doing exactly what you’re looking for.

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

Sidebar

Related Questions

Is it possible to specify connection/query timeout for the Oracle database queries? Either on
Is is it possible to specify default type when parametrzing a class? Example: //
Is it possible to specify the value of a tag or attribute should not
Is it possible to specify the table name in a many-to-many relationship? Example: class
I have asp.net website hosted and I am making WebRequest to post data and
Possible Duplicate: Specify Command for MenuItem in a DataTemplate I have a collection of
Is it possible to specify thresholds for color-scales? Look at this example: xy <-
In layout XML it is possible to specify android:imeOptions=actionNext which adds Next button in
I'd like to use @Where annotation in Hibernate to remove objects which have been
Is it possible to specify include paths for C and C++ in a pkg-config

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.