[6285] in java-interest

home help back first fref pref prev next nref lref last post

problem with sockets

daemon@ATHENA.MIT.EDU (Vincent Warscotte)
Thu Mar 28 15:16:53 1996

Date:         Mon, 25 Mar 1996 13:24:08 +0100
Reply-To: Java Interest <JAVA-INTEREST@JAVASOFT.COM>
From: Vincent Warscotte <Warscotte@TELE.UCL.AC.BE>
To: Multiple recipients of list JAVA-INTEREST
              <JAVA-INTEREST@JAVASOFT.COM>

Hi,

I'm working on the implementation of a client-server application
with JAVA. The server machine has an IP address that is 130.104.97.11.
When I try to connect from another machine of the same network as
the server machine, no problem occurs but when I try to connect from
a machine of another network, I receive the following message :

java.net.UnknownHostException: 130.104.97.11
        at java.net.InetAddress.getAllByName(InetAddress.java:263)
        at java.net.InetAddress.getByName(InetAddress.java:197)
        at java.net.Socket.<init>(Socket.java:81)
        at java.net.Socket.<init>(Socket.java:62)
        at sun.net.NetworkClient.openServer(NetworkClient.java:47)
        at sun.net.NetworkClient.<init>(NetworkClient.java:71)
        at neweoleclient.connect(eole.java:2134)
        at neweoleclient.runClient(eole.java:2211)
        at fiche.<init>(eole.java:1130)
        at eole.effectuerrecherche(eole.java:1018)
        at eole.handleEvent(eole.java:735)
        at java.awt.Component.postEvent(Component.java:838)
        at java.awt.Component.postEvent(Component.java:845)
        at java.awt.Component.postEvent(Component.java:845)
        at sun.awt.motif.MButtonPeer.action(MButtonPeer.java:39)
        at java.lang.Thread.run(Thread.java)

What is very astonisching is that when I use the Unix ping command from
the remote machine ('ping 130.104.97.11'),
I received the normal message : '130.104.97.11 is valid'.


Is it a problem of security ? Of a JAVA bug ? Of am I completely wrong ?


Could anyone help me ?

Thanks in advance,


Vincent



Warscotte Vincent - Research Assistant
Laboratoire de Telecommunications et Teledetection
Universite Catholique de Louvain - Belgium

-----
This message has been forwarded via the JAVA-INTEREST
mailing list.  In order to unsubscribe from this list, send a message to
listserv@javasoft.com with the command 'signoff JAVA-INTEREST' in
the message body (not in the subject line).

-----
This message has been forwarded via the JAVA-INTEREST
mailing list.  In order to unsubscribe from this list, send a message to
listserv@javasoft.com with the command 'signoff JAVA-INTEREST' in
the message body (not in the subject line).

home help back first fref pref prev next nref lref last post