Search code examples
javaudpdatagramspoofing

Spoof source IP/Port with DatagramPacket


Is there any way to spoof the source IP/Port of a DatagramPacket object in Java?


Solution

  • Raw Socket is a term that'll help your search.

    You can look at the following question: Best way to do RAW socket programming involving Java

    They recommend a raw-socket wrapper, rocksaw.