[6458] in java-interest

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

Re: problem with sockets

daemon@ATHENA.MIT.EDU (Kursad Keskinege)
Sun Mar 31 07:08:33 1996

Date:         Sat, 30 Mar 1996 14:44:36 +0300
Reply-To: Java Interest <JAVA-INTEREST@JAVASOFT.COM>
From: Kursad Keskinege <kursad@EGE.EDU.TR>
To: Multiple recipients of list JAVA-INTEREST
              <JAVA-INTEREST@JAVASOFT.COM>
In-Reply-To:  <199603251224.NAA21076@capella.tele.ucl.ac.be>

On Mon, 25 Mar 1996, Vincent Warscotte wrote:

> 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 ?
as of jdk 1.0 connection from a client to another machine, other than the
java code comes from is prohibited due to security reasons.
if you take the code from host1, loaded it to host2, you cannot make a
socket connection to host3.
best wishes,
Kursad Keskinege, Ege                                    kursad@ege.edu.tr
Network Group, EgeNET Services Coordinator           http://www.ege.net.tr
KIDLINK WWW Coordinator                             http://www.kidlink.org
Web Admin of http://www.ege.edu.tr   home: http://www.ege.edu.tr/~keskineg

-----
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).

-----
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