Home Help Center

Question about Connect with Internet

richardrichard Member richardOrganization: richardProject: richard
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?

Comments

  • marcmarc FloridaAdministrators, ZeroC Staff Marc LaukienOrganization: ZeroC, Inc.Project: The Internet Communications Engine ZeroC Staff
    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.
  • richardrichard Member richardOrganization: richardProject: richard
    Thank your double-quick reply!
    Application network traces
    [ 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
    
  • benoitbenoit Rennes, FranceAdministrators, ZeroC Staff Benoit FoucherOrganization: ZeroC, Inc.Project: Ice ZeroC Staff
    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.
  • richardrichard Member richardOrganization: richardProject: richard
    hi Benoit,
    Thank you very much!
    The question is run behind a firewall, and not set the PublishedEndpoints property . Now that's ok!
Sign In or Register to comment.