问题
Is there any way to spoof the source IP/Port of a DatagramPacket
object in Java?
回答1:
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