views:

163

answers:

1

Since Http Headers can be crafted and customize, how would I change or modify the IP part of it using C# 's HttpWebRequest class. In other words, how can IP Spoofing be done using C#.

Thanks for reading.

A: 

Sorry can I ask why you need that ? Looks for hacking purposes. Anyway if it is not for hacking may be we can find another solution without replacing IP.

Incognito
Actually, it's for a school project. Our instructor has set up a server with a simple php script that records IP addresses of visits and we're supposed to post our student number as an IP. I see no solution except spoofing IPs, but I welcome any suggestions.Just curious, but I don't see how one would use this to hack? I mean, there's absolutely no advantage over using proxies since you don't get any information back.
rukqoa
Please check here : http://www.dreamincode.net/code/snippet2015.htmThis must be helpful although the code is in VB, but you can figure that out. And here in C# :http://www.codeproject.com/KB/system/cstcpipwmi.aspx. But please note that as already mentioned in comments by Raj and TomTom this is not in HTTP level.
Incognito