Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 09-24-2004
victorchan victorchan is offline
Registered User
 
 
Join Date: Sep 2004
Posts: 4
Connection Error

Hi all, I am a beginner in ICE.

I Complied HelloWorld Demo for C# and It works fine if I run Client and Server in same computer.

The problem occupted when client side and server side located in different computer there is run time error occuped,

and here is the error message:

Ice.ConnectFailedException: Connect failed: connection refused
at IceInternal.ProxyFactory.checkRetryAfterException( LocalException ex, Int32
cnt)
at Ice.ObjectPrxHelperBase.__handleException(LocalExc eption ex, Int32 cnt)
at Ice.ObjectPrxHelperBase.ice_isA(String __id, Context __context)
at Ice.ObjectPrxHelperBase.ice_isA(String __id)
at HelloPrxHelper.checkedCast(ObjectPrx b)
at Client.run(String[] args, Communicator communicator)
at Client.Main(String[] args)


Here is my config file:

#
# The client reads this property to create the reference to the
# "hello" object in the server.
#

Ice.Default.Locator=IcePack/Locator:default -h victorchan -p 10000 :udp -p 10000 -h victorchan

Hello.Proxy=hello:tcp -p 10000:udp -p 10000

["victorchan" is my computer name.I am runing WinXP Home Edition]

Is there anything I forget to do if i need to make client and server side run in different computer?

Can anyone help?

Thanks a lot.

Last edited by victorchan : 09-24-2004 at 06:01 AM.
Reply With Quote
  #2 (permalink)  
Old 09-24-2004
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
Try:

Hello.Proxy=hello:tcp -h victorchan -p 10000:udp -h victorchan -p 10000

You can trace connection establishment with:

Ice.Trace.Network=2

With tracing, you will see exactly where the client attempts to connect to.
Reply With Quote
  #3 (permalink)  
Old 09-27-2004
victorchan victorchan is offline
Registered User
 
 
Join Date: Sep 2004
Posts: 4
Thanks marc ^^
It works^^

Sorry, may I ask another question?

Is there any demos for C# that showing how to pass Dataset through ICE?

Thanks !
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
NT4 connection error joel vennin Help Center 3 02-09-2006 11:04 AM
A question about Ice connection laotee Help Center 3 10-26-2005 04:02 AM
locking in Connection garry Bug Reports 2 02-19-2005 12:59 PM
Connection Status rhochmuth Help Center 1 10-03-2003 10:57 AM
How to get connection info? amrufon Help Center 15 08-26-2003 09:23 AM


All times are GMT -4. The time now is 09:44 AM.


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.