Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!bloom-beacon!LARRY.MCRCIM.MCGILL.EDU!mouse From: mouse@LARRY.MCRCIM.MCGILL.EDU (der Mouse) Newsgroups: comp.windows.x Subject: Re: xhost and gateways Message-ID: <8911100426.AA09222@Larry.McRCIM.McGill.EDU> Date: 10 Nov 89 04:26:46 GMT Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 29 > 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