[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 965
  • Last Modified:

Spoof MAC and IP adresses

I wan't to programmatically (in Java or through some API) chanage/spoof my MAC and IP addresses.  I know I can go through Anonymous IP's to hide my IP from a webserver but this lags my software.  I would like to spoof (autonomously) both of these while not hindering the performance of my application.  My software repeatedly downloads web pages many times per hour, some of the sites I am getting data from will ban me from doing this.  I need to hide my identity from these sites so i can repeatedly update my data many times per hour.

1 Solution
the true IP is always known from the properties of the sending socket endpoint. This is a feature of TCP/IP, not Java APIs. To spoof the source IP you need root access and raw sockets (not possible in Java) and all routers between you and the destination agreeing to route such IP packets.
Mayank SAssociate Director - Product EngineeringCommented:
That's from: http://www.javaworld.com/javaforums/showflat.php?Cat=&Board=javabeginner&Number=89&page=0&view=collapsed&sb=7&o=&fpart=1

:-) ? Anyway, its correct that spoofing would not be possible until the router/ relay which connects you to the site agrees to it. Some reading material on spoofing here:


Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now