On Tue, 4 May 1999 15:35:47 +0200, Andreas Rueckert wrote:
>Hi!
>
>Platform: RedHat 5.1, Kernel 2.2.3, JDK 1.1.7a
>
>I connect with a FTP client to localhost and check for a data connection
>spoofing attack then. I create a IP from a string "127.0.0.1", but it's not
>equal to the sockets remote IP:
>
>Remote-IP: 127.0.0.1
>Test-IP: localhost/127.0.0.1
>remoteIp <> testIp
How are you getting the Test-IP? It looks like you just did a
toString() on the InetAddress object. That method returns the host
name (assuming it can reverse lookup the name) along with the address.
(localhost is the reverse lookup on your system for 127.0.0.1 - and
it is that for most systems)
>Checked Jitterbug, but couldn't find anything. Is this a known bug in Sun's JDK
>1.1.7a? It worked with older JDK's here. Or is it me, doing something wrong
>here?
This is not a bug in the JDK - you may wish to look at the getHostAddress()
method which will return a string of just the address.
See the java.net.InetAddress JavaDOCs for details.
Michael Sinz -- Director of Research & Development, NextBus Inc.
mailto:[EMAIL PROTECTED] --------- http://www.nextbus.com
My place on the web ---> http://www.users.fast.net/~michael_sinz
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]