Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 10-08-2006
richard 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?
Reply With Quote
  #2 (permalink)  
Old 10-08-2006
marc's Avatar
marc marc is offline
ZeroC Staff
 
Name: Marc Laukien
Organization: ZeroC, Inc.
Project: The Internet Communications Engine
 
Join Date: Feb 2003
Location: Florida
Posts: 1,781
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.
Reply With Quote
  #3 (permalink)  
Old 10-08-2006
richard 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
File Type: txt TextFile1[1].txt (3.4 KB, 62 views)
__________________
Li Qiang
www.simtao.cn
Reply With Quote
  #4 (permalink)  
Old 10-09-2006
benoit's Avatar
benoit benoit is offline
ZeroC Staff
 
Name: Benoit Foucher
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Rennes, France
Posts: 1,540
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.
Reply With Quote
  #5 (permalink)  
Old 10-10-2006
richard 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
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
[help]how to connect a server by ip? joise Help Center 5 06-30-2006 06:11 AM
connect question yxt Help Center 0 09-02-2005 06:33 AM
How Ice client connect to the Internet through proxy server? xiehua Help Center 4 02-28-2004 02:40 AM
Connect failed HELP! alesio Help Center 1 02-24-2004 07:06 AM
The Internet Communications Engine marc Announcements 0 02-17-2003 10:53 AM


All times are GMT -4. The time now is 10:09 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.