Re: faking source address in Java

New Message Reply About this list Date view Thread view Subject view Author view

Lewis McCarthy (lmccarth@cs.umass.edu)
Thu, 24 Sep 1998 23:43:22 -0400


David Honig writes:
> I'd like to modify the *source* address of UDP datagrams
> sent from an application written in Java. Anyone know
> how to do this? Levels below DatagramPackets seem opaque...

I suspect this can't be done within Java, but would be interested to learn otherwise.

I assume that java.net.DatagramSocket.send() uses a native sockets API to hand off the
outgoing DatagramPacket payload (and dest IP/port) to the transport layer. Typically
(AFAIK) sockets APIs don't provide facilities for an application to set the src IP addr.

-Lewis
"It depends on what the meaning of the word `is` is."


New Message Reply About this list Date view Thread view Subject view Author view

 
All trademarks and copyrights are the property of their respective owners.

Other Directory Sites: SeekWonder | Directory Owners Forum

The following archive was created by hippie-mail 7.98617-22 on Sat Apr 10 1999 - 01:14:01