Is there any way to spoof the source IP/Port of a DatagramPacket
object in Java?
Paul Rubel
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.
来源:https://stackoverflow.com/questions/10626262/spoof-source-ip-port-with-datagrampacket