Go Back   ZeroC Forums > Comments

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 10-17-2005
wgwolf wgwolf is offline
Registered User
 
Name: Wolfgang
Organization: Uni Erlangen - Germany
Project: .
 
Join Date: Oct 2005
Location: Nuremberg, Germany
Posts: 10
ICE without DNS Server

Hi,

we have a tiny own linux distribution without any DNS Server realized. We just operate with IP addresses.
This is a problem for an ICE server as it seems to be that it wants to resolve the local hostname to its IP address.
The error message is:
DNSException: exception ::Ice:NSException
{
error = -5
host = entity_4
}

Is there any possibility to run ICE without any DNS functionality?

Thanks!
Wolfgang
Reply With Quote
  #2 (permalink)  
Old 10-17-2005
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
Please see this thread regarding our support policy here on these forums:

Important note: Change in support policy
Reply With Quote
  #3 (permalink)  
Old 10-17-2005
wgwolf wgwolf is offline
Registered User
 
Name: Wolfgang
Organization: Uni Erlangen - Germany
Project: .
 
Join Date: Oct 2005
Location: Nuremberg, Germany
Posts: 10
Signature and profile is set.
Thank you for your help.
Wolfgang


Quote:
Originally Posted by marc
Please see this thread regarding our support policy here on these forums:

Important note: Change in support policy
Reply With Quote
  #4 (permalink)  
Old 10-17-2005
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
Is this with Ice for C++? Do you get the problem also if you explicitly set the -h option for your endpoint? You can also try to set Ice.Default.Host.
Reply With Quote
  #5 (permalink)  
Old 10-18-2005
wgwolf wgwolf is offline
Registered User
 
Name: Wolfgang
Organization: Uni Erlangen - Germany
Project: .
 
Join Date: Oct 2005
Location: Nuremberg, Germany
Posts: 10
It is Ice for Python. But the -h option doesn't seem to take any effect in the following line:
adapter = self.communicator().createObjectAdapterWithEndpoin ts("Machine", "default -h Ice.Default.Host -p 10000")
Independent of what is set up with -h, neither any hostname nor an ip address, ice only wants always to resolve the name of the local machine.

Wolfgang


Quote:
Originally Posted by marc
Is this with Ice for C++? Do you get the problem also if you explicitly set the -h option for your endpoint? You can also try to set Ice.Default.Host.
__________________
University of Erlangen-Nuremberg
Institute for Manufacturing Automation and Production Systems
Egerlandstr. 7-9
D-91058 Erlangen
Germany
URL: www.faps.uni-erlangen.de
Reply With Quote
  #6 (permalink)  
Old 10-18-2005
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,535
Ice.Default.Host is a configuration property (see the manual for more information). You should try to set it with the IP address of your machine and not specify the -h option in the endpoints of your object adapters (they will use the default set in Ice.Default.Host).

For example, with the IcePy hello demo, you can use the following to make sure it will use 192.168.0.3 as the default host:

$ python Server.py --Ice.Default.Host=192.168.0.3 --Ice.Trace.Network

Can you try this? Also, if you have the stack trace of the exception, it would be helpful to include it, this might give some hints...

Benoit.
Reply With Quote
  #7 (permalink)  
Old 10-18-2005
wgwolf wgwolf is offline
Registered User
 
Name: Wolfgang
Organization: Uni Erlangen - Germany
Project: .
 
Join Date: Oct 2005
Location: Nuremberg, Germany
Posts: 10
It works fine! Thank you!
Another question: how can I bind the server to several ip addresses?
with Ice.Default.Host you can just set one ip address.

Wolfgang


Quote:
Originally Posted by benoit
Ice.Default.Host is a configuration property (see the manual for more information). You should try to set it with the IP address of your machine and not specify the -h option in the endpoints of your object adapters (they will use the default set in Ice.Default.Host).

For example, with the IcePy hello demo, you can use the following to make sure it will use 192.168.0.3 as the default host:

$ python Server.py --Ice.Default.Host=192.168.0.3 --Ice.Trace.Network

Can you try this? Also, if you have the stack trace of the exception, it would be helpful to include it, this might give some hints...

Benoit.
__________________
University of Erlangen-Nuremberg
Institute for Manufacturing Automation and Production Systems
Egerlandstr. 7-9
D-91058 Erlangen
Germany
URL: www.faps.uni-erlangen.de
Reply With Quote
  #8 (permalink)  
Old 10-18-2005
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,535
Yes, it's not the purpose of the Ice.Default.Host property to define the endpoints of object adapters (and therefore the interfaces the object adapter will listen to). See the description of this property in the Appendix C.7 of the Ice manual for more information.

If you use the createObjectAdapterWithEndpoints method to create the object adapter, you have to specify the object adapter endpoints directly in the code, for example:

Code:
   Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapterWithEndpoints("Machine", "tcp -p 10000 -h 192.168.0.3:tcp -p 10000 -h 1.1.0.3");
If you create the object adapter with the createObjectAdapter method, you can set the endpoints with configuration properties. For example, if you create the adapter with the following code:

Code:
   Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapter("Machine");
You can set the object adapter endpoints with the Machine.Endpoints property in a configuration file, for example:
Code:
  Machine.Endpoints=tcp -p 10000 -h 192.168.0.3:tcp -p 10000 -h 1.1.0.3
You can turn on the network tracing (--Ice.Trace.Network=1) to make sure your server will listen on the endpoints specified either in the code or the configuration.

Benoit.
Reply With Quote
  #9 (permalink)  
Old 10-18-2005
dwayne's Avatar
dwayne dwayne is offline
ZeroC Staff
 
Name: Dwayne Boone
Organization: ZeroC, Inc.
Project: Internet Communications Engine
 
Join Date: Jan 2005
Location: St. John's, Newfoundland
Posts: 209
Just a note that in the next release of Ice if you do not specify a -h parameter in the endpoint configuration and Ice.Default.Host is not set then Ice will listen on all local interfaces.

Regards,
Dwayne
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


All times are GMT -4. The time now is 08:38 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.