[comp.windows.x] xhost and gateways

duanev@kauai.ACA.MCC.COM (Duane Voth) (11/10/89)

If I may bend the ears of some of you IP gurus...

We have a gateway machine that I want to run X clients on
which responds to two different IP addresses.  When I use
xhost on my machine to enable the gateway machine, one of
the gateway's addresses is given to my X server.  Then, when I
run a client on the gateway, the client opens a connection
to my server and reports the gateway's *other* address.
It's got to be network configuration problem and I was hoping
someone could explain where each machines gets it's idea of
the gateway's address and how to fix this.

duane

-- 
--- duane voth             duanev@mcc.com
----           ALL systems are arbitrary!
--- effectiveness is the measure of Truth
--

mouse@LARRY.MCRCIM.MCGILL.EDU (der Mouse) (11/10/89)

> We have a gateway machine that I want to run X clients on which
> responds to two different IP addresses.  When I use xhost on my
> machine to enable the gateway machine, one of the gateway's addresses
> is given to my X server.

There's your problem.  Build xhost with nameserver support and your
problems go away.  We had the same problem until I realized that xhost
couldn't tell that the machine had more than one address, so of course
it was passing only one to the server.

So compile it with a modern netdb.h and link with a version of
gethostbyname() that supports resolver lookups, and all your problems
are solved.  (Well, this one is solved, at least.)

If you can't do that for whatever reason, all I can suggest is running
xhost twice, once with one address and once with the other.  For
example, the machine here I alluded to above has addresses 132.206.1.1
and 132.206.4.3, so I would run

% xhost +132.206.1.1
% xhost +132.206.4.3

to install both addresses on the server.  (Except I don't need to now
because I've rebuilt xhost.)

					der Mouse

			old: mcgill-vision!mouse
			new: mouse@larry.mcrcim.mcgill.edu