Results 1 to 5 of 5

Thread: Question about Connect with Internet

  1. #1
    richard is offline Registered User
    Name: richard
    Organization: richard
    Project: richard
    Join Date
    Sep 2006
    Posts
    5

    Question about Connect with Internet

    After creating a Linux server for registration, I now created an application on Windows (2003, VS2003). This application has to register on the linux server after starting. That is working. The application work on local area network ,it's ok.
    The application work on internet, The Server Get
    "[ /opt/Ice-3.1.0/bin/icegridnode: Network: accepted tcp connection
    local address = 192.168.2.135:12000
    remote address = 61.*.*.247:1046 ]
    ",
    The application catch Ice::ConnectionLostException the err is WSAtimeout

    What I hase to do ,It can work on internet?

  2. #2
    marc's Avatar
    marc is offline ZeroC Staff
    Name: Marc Laukien
    Organization: ZeroC, Inc.
    Project: The Internet Communications Engine
    Join Date
    Feb 2003
    Location
    Florida
    Posts
    1,860
    Welcome to our forums! Can you please set your signature as described in this thread? Also, can you please include the full network traces, as well as the precise text (cut&paste) of the exception.

  3. #3
    richard is offline Registered User
    Name: richard
    Organization: richard
    Project: richard
    Join Date
    Sep 2006
    Posts
    5
    Thank your double-quick reply!
    Application network traces
    Code:
    [ i:/Ice-3.1.0-VC71/demo/IceGrid/sessionActivation/client.exe: Network: trying t
    o establish tcp connection to 222.68.142.151:12000 ]
    [ i:/Ice-3.1.0-VC71/demo/IceGrid/sessionActivation/client.exe: Network: tcp conn
    ection established
      local address = 192.168.1.3:2395
      remote address = 222.68.142.151:12000 ]
    [ i:/Ice-3.1.0-VC71/demo/IceGrid/sessionActivation/client.exe: Network: received
     14 of 14 bytes via tcp
      local address = 192.168.1.3:2395
      remote address = 222.68.142.151:12000 ]
    [ i:/Ice-3.1.0-VC71/demo/IceGrid/sessionActivation/client.exe: Protocol: receive
    d validate connection
      message type = 3 (validate connection)
      compression status = 0 (not compressed; do not compress response, if any)
      message size = 14 ]
    [ i:/Ice-3.1.0-VC71/demo/IceGrid/sessionActivation/client.exe: Protocol: sending
     request
      message type = 0 (request)
      compression status = 0 (not compressed; do not compress response, if any)
      message size = 75
      request id = 1
      identity = IceGrid/Locator
      facet =
      operation = findObjectById
      mode = 1 (nonmutating)
      context =  ]
    [ i:/Ice-3.1.0-VC71/demo/IceGrid/sessionActivation/client.exe: Network: sent 75
    of 75 bytes via tcp
      local address = 192.168.1.3:2395
      remote address = 222.68.142.151:12000 ]
    [ i:/Ice-3.1.0-VC71/demo/IceGrid/sessionActivation/client.exe: Network: received
     14 of 14 bytes via tcp
      local address = 192.168.1.3:2395
      remote address = 222.68.142.151:12000 ]
    [ i:/Ice-3.1.0-VC71/demo/IceGrid/sessionActivation/client.exe: Network: received
     63 of 63 bytes via tcp
      local address = 192.168.1.3:2395
      remote address = 222.68.142.151:12000 ]
    [ i:/Ice-3.1.0-VC71/demo/IceGrid/sessionActivation/client.exe: Protocol: receive
    d reply
      message type = 2 (reply)
      compression status = 0 (not compressed; do not compress response, if any)
      message size = 77
      request id = 1
      reply status = 0 (ok) ]
    [ i:/Ice-3.1.0-VC71/demo/IceGrid/sessionActivation/client.exe: Network: trying t
    o establish tcp connection to 192.168.2.135:12000 ]
    [ i:/Ice-3.1.0-VC71/demo/IceGrid/sessionActivation/client.exe: Protocol: sending
     request
      message type = 0 (request)
      compression status = 0 (not compressed; do not compress response, if any)
      message size = 75
      request id = 2
      identity = IceGrid/Locator
      facet =
      operation = findObjectById
      mode = 1 (nonmutating)
      context =  ]
    [ i:/Ice-3.1.0-VC71/demo/IceGrid/sessionActivation/client.exe: Network: sent 75
    of 75 bytes via tcp
      local address = 192.168.1.3:2395
      remote address = 222.68.142.151:12000 ]
    [ i:/Ice-3.1.0-VC71/demo/IceGrid/sessionActivation/client.exe: Network: received
     14 of 14 bytes via tcp
      local address = 192.168.1.3:2395
      remote address = 222.68.142.151:12000 ]
    [ i:/Ice-3.1.0-VC71/demo/IceGrid/sessionActivation/client.exe: Network: received
     63 of 63 bytes via tcp
      local address = 192.168.1.3:2395
      remote address = 222.68.142.151:12000 ]
    [ i:/Ice-3.1.0-VC71/demo/IceGrid/sessionActivation/client.exe: Protocol: receive
    d reply
      message type = 2 (reply)
      compression status = 0 (not compressed; do not compress response, if any)
      message size = 77
      request id = 2
      reply status = 0 (ok) ]
    [ i:/Ice-3.1.0-VC71/demo/IceGrid/sessionActivation/client.exe: Network: trying t
    o establish tcp connection to 192.168.2.135:12000 ]
    : .\Network.cpp:675: Ice::ConnectFailedException:
    connect failed: WSAETIMEDOUT
    
    Attached Files Attached Files
    Li Qiang
    www.simtao.cn

  4. #4
    benoit's Avatar
    benoit is offline ZeroC Staff
    Name: Benoit Foucher
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Rennes, France
    Posts
    2,196
    Hi,

    These traces indicate that the client fails to connect to port 12000 of host with the IP address 192.168.2.135. What is your network setup and the configuration of your IceGrid registry?

    Most likely, you need to specify the "-h" option in the registry client endpoints, for example:

    IceGrid.Registry.Client.Endpoints=tcp -h 222.68.142.151 -p 12000
    With this setting, the registry will listen on the interface with the IP address 222.68.142.151. If the registry is running behind a firewall, you might have to set the PublishedEndpoints property instead.

    See Appendix C.11 of the Ice manual for more information on these properties. You will also find a detail description of adapter endpoints in section 30.4.6.

    Cheers,
    Benoit.

  5. #5
    richard is offline Registered User
    Name: richard
    Organization: richard
    Project: richard
    Join Date
    Sep 2006
    Posts
    5

    Thumbs up

    hi Benoit,
    Thank you very much!
    The question is run behind a firewall, and not set the PublishedEndpoints property . Now that's ok!
    Li Qiang
    www.simtao.cn

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Use ICE through the Internet
    By edymont in forum Help Center
    Replies: 3
    Last Post: 05-14-2010, 03:02 PM
  2. How can the server know who connect it?
    By acku711 in forum Help Center
    Replies: 2
    Last Post: 01-07-2009, 08:57 PM
  3. connect question
    By yxt in forum Help Center
    Replies: 0
    Last Post: 09-02-2005, 05:33 AM
  4. Replies: 4
    Last Post: 02-28-2004, 01:40 AM
  5. The Internet Communications Engine
    By marc in forum Announcements
    Replies: 0
    Last Post: 02-17-2003, 09:53 AM

Posting Permissions

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