Results 1 to 4 of 4

Thread: Running HelloWorld Client on remote computer

  1. #1
    yeranarraila is offline Registered User
    Name: Tatiana Pereira
    Organization: Universidade Federal de Santa Catarina
    Project: An app to transfer mobile agents
    Join Date
    Aug 2011
    Posts
    14

    Running HelloWorld Client on remote computer

    Hi!
    I'm trying to run helloworld demo with client in my friend's house and server in my work. But I didn't receive the client message, and client receive this error:


    Ice.ConnectFailedException
    error = 0
    at IceInternal.ConnectRequestHandler.getConnection(Co nnectRequestHandler.java:240)
    at IceInternal.ConnectRequestHandler.sendRequest(Conn ectRequestHandler.java:138)
    at IceInternal.Outgoing.invoke(Outgoing.java:66)
    at Ice._ObjectDelM.ice_isA(_ObjectDelM.java:30)
    at Ice.ObjectPrxHelperBase.ice_isA(ObjectPrxHelperBas e.java:111)
    at Ice.ObjectPrxHelperBase.ice_isA(ObjectPrxHelperBas e.java:77)
    at Demo.PrinterPrxHelper.checkedCast(PrinterPrxHelper .java:248)
    at ClientTwo.main(ClientTwo.java:11)
    Caused by: java.net.ConnectException: Connection timed out: no further information
    at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
    at sun.nio.ch.SocketChannelImpl.finishConnect(Unknown Source)
    at IceInternal.Network.doFinishConnect(Network.java:3 25)
    at IceInternal.TcpTransceiver.initialize(TcpTransceiv er.java:33)
    at Ice.ConnectionI.initialize(ConnectionI.java:1831)
    at Ice.ConnectionI.message(ConnectionI.java:1038)
    at IceInternal.ThreadPool.run(ThreadPool.java:302)
    at IceInternal.ThreadPool.access$300(ThreadPool.java: 12)
    at IceInternal.ThreadPool$EventHandlerThread.run(Thre adPool.java:643)
    at java.lang.Thread.run(Unknown Source)


    Both machines ping fine. Firewall is off. What can I do?


    Server side :


    C:\Documents and Settings\M*****\Desktop\ZeroC test\bin>java -classpath .;./Ic
    e.jar Server --Ice.Trace.Network=2
    -- 28/09/11 11:20:48:758 Network: attempting to bind to tcp socket 0.0.0.0:10000

    -- 28/09/11 11:20:48:758 Network: accepting tcp connections at 0.0.0.0:10000
    local interfaces: 150.162.64.153, 127.0.0.1
    -- 28/09/11 11:20:48:758 Network: published endpoints for object adapter `Simple
    PrinterAdapter':
    tcp -h 150.162.64.153 -p 10000
    Last edited by yeranarraila; 09-28-2011 at 10:44 AM.

  2. #2
    bernard's Avatar
    bernard is online now ZeroC Staff
    Name: Bernard Normier
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Palm Beach Gardens, FL
    Posts
    1,294
    Hi Tatiana,

    This looks like a firewall problem.

    It seems very unlikely that your computer at work would be connected directly to the Internet (with IP address 150.162.64.153) with no firewall at all. It could be a software firewall on the computer itself, or an external device, or both. You just need to make sure port 10,000 is open.

    Once your Ice server is running, you can use telnet from your friend's computer to "test" the connection:

    Code:
      telnet 150.162.64.153 10000
    You should also double-check the proxy used by your client; it should include "tcp -h 150.162.64.153 -p 10000".

    Best regards,
    Bernard
    Last edited by bernard; 09-28-2011 at 11:39 AM.
    Bernard Normier
    ZeroC, Inc.

  3. #3
    yeranarraila is offline Registered User
    Name: Tatiana Pereira
    Organization: Universidade Federal de Santa Catarina
    Project: An app to transfer mobile agents
    Join Date
    Aug 2011
    Posts
    14
    Hi!
    Thx for help. I'll try use glacier to solve this problem. Soon I'm back with new questions
    Hugs!

  4. #4
    bernard's Avatar
    bernard is online now ZeroC Staff
    Name: Bernard Normier
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Palm Beach Gardens, FL
    Posts
    1,294
    With Glacier2, you will still need to open one port on your server-side firewall ... Glacier2 does not magically circumvent this firewall.

    One advantage of using Glacier2 is when you have multiple servers behind your firewall: with Glacier2, you can open just one port, and all traffic between clients (outside the firewall) and servers (inside) will traverse the firewall through this one opened port. Glacier2 also provides a number of authentication and filtering options to make this traversal "safe", as you probably don't want to completely open your server-side network to any client.

    If you have multiple servers behind your firewall and don't use Glacier2, you would typically have to open one port for each server (really: object adapter), which is not very convenient.

    Best regards,
    Bernard
    Bernard Normier
    ZeroC, Inc.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 2
    Last Post: 05-06-2011, 07:33 AM
  2. Replies: 4
    Last Post: 01-08-2009, 10:07 PM
  3. static client remote port
    By JAX82 in forum Help Center
    Replies: 1
    Last Post: 07-19-2007, 05:42 AM
  4. Certificate validation on remote computer
    By tkrieger in forum Help Center
    Replies: 6
    Last Post: 04-03-2007, 11:20 AM
  5. how server to remote client.?
    By ouloba in forum Help Center
    Replies: 2
    Last Post: 10-17-2004, 10:27 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •