Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

i am trying to browse web page using custom(user provided) ip address but it's not working. webBrowser1 loads web page successfully but it's not using custom ip address, it loads page with real ip address.

please tell me how to make this work successfully.

this is my code:

private void Form1_Load(object sender, EventArgs e)
    IPAddress addr1 = IPAddress.Parse("");
    webBrowser1.ScriptErrorsSuppressed = true;
share|improve this question

closed as off topic by Daniel Beck Sep 6 '12 at 6:57

Questions on Super User are expected to relate to computer software or computer hardware within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

It seems to be you have significant misunderstandings about how programming in general (and C# in particular) works and also about how the IP protocol (which is used to access web sites on the internet) works.

The C# misunderstanding is that you just create an object that represents an IP address and you expect that the computer will read your mind as to what does that IP address mean. If something like this was possible, you would need to use the IP address somehow in your code. It could look something like this:

webBrowser1.SourceIpAddress = addr1;

(The above code won't work, it's just a hypothetical example.)

The IP misunderstanding is that you can forge your IP address and everything will continue to work. That's not how IP works. When you send a request for some web page, your address is contained in that request. But there is a good reason for that: it's so that the recipient of your request knows where to send his response.

What this means is that you could forge your IP address, but you would never get any response from anyone, all the responses would go to the forged address. Because of that, doing something like that is not useful.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.