Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 02-16-2005
Nis Baggesen Nis Baggesen is offline
Registered User
 
 
Join Date: Aug 2004
Location: Aarhus, Denmark
Posts: 112
Proxy to 127.0.0.1

It seems that if I create a proxy with a default endpoint such as

TestObject.Endpoint=default -p 10000

Then the proxy I get for this object points to 127.0.0.1:10000 - that is the local host. So when I give this proxy to a remote machine, it naturally can't find the requested service. This only seems to happen when such a proxy is created on our (Redhat) Linux machines. Similar proxies created on our windows machines seem to work just fine.

Naturally I can work around the problem by explicitly specifying a host for the endpoint, but that makes it a bit problematic to move the server between machines.
Reply With Quote
  #2 (permalink)  
Old 02-16-2005
benoit's Avatar
benoit benoit is online now
ZeroC Staff
 
Name: Benoit Foucher
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Rennes, France
Posts: 1,534
By default, it your endpoint doesn't specify the hostname and if Ice.Default.Host isn't specified, Ice will use the IP address of the default host name configured for your host (the one returned by the gethostname() system call).

Can you check the value returned by the "hostname" command on your Linux machine? I suspect it's "localhost".

Benoit.
Reply With Quote
  #3 (permalink)  
Old 02-16-2005
Nis Baggesen Nis Baggesen is offline
Registered User
 
 
Join Date: Aug 2004
Location: Aarhus, Denmark
Posts: 112
Right you are. I must admit I'm not that wise in the ways of linux, so I was just a bit puzzled. Thanks for clearing that up

mvh

Nis
Reply With Quote
  #4 (permalink)  
Old 02-16-2005
michi's Avatar
michi michi is offline
ZeroC Staff
 
Name: Michi Henning
Organization: ZeroC
Project: Ice
 
Join Date: Feb 2003
Location: Brisbane, Australia
Posts: 907
BTW, if you get "localhost" back from hostname, your DNS is misconfigured. gethostbyname() should return the real host name, not "localhost". Check /etc/hosts and your DNS config for incorrect entries.

Cheers,

Michi.
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
retrieve proxy id steepLearningC Help Center 5 12-09-2005 03:01 AM
Ptr to Proxy w/o identity? bboerner Help Center 5 10-07-2005 11:39 AM
Ice Proxy Design jghickman Help Center 7 07-29-2005 09:00 PM
SSL Proxy Endpoint and -s gsalazar Help Center 11 06-22-2005 02:57 PM
Getting a description of proxy Nis Baggesen Help Center 2 06-01-2005 09:03 AM


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