Re: X won't act as a remote display Dan <daniel_a_ost@yahoo.com> randomly warbled in alt.os.linux.gentoo:
> Normally, when I'm logged into a remote machine and want the
> display to display to my machine, I use xhost to add the remote
> machine to the list of authorized machines and export DISPLAY
> on the remote machine to be my machine.
>
> Today, I noticed that on both of my gentoo machines (one laptop and
> one desktop) this doesn't seem to work. For example, if I do
> 'xhost 127.0.0.1' and 'export DISPLAY=127.0.0.1:0' and then
> try to run xclock, nothing happens for about 6 seconds and then
> I receive the error message: "Error: Can't open display: 127.0.0.1:0"
>
> Running nmap against both machines reveals that X11 isn't listening
> on the usual port (6000?). Did I fail to configure X correctly or
> is there some step I still need to take in order to use my gentoo
> machines as remote X display?
If you want X to display on a remote system what makes you think that
using 127.0.0.1 will ever work ?
This is an IP standard address meaning "this machine only" and is NEVER
ever visible from any other machine - since it means "me" on any other
machine as well...
Even though it is an IP address, many not-old-hands fail to understand
that 127.0.01 is NOT a network address - it uses the network
*protocols*, but nothing is sent out over any wire - ever.
Don't run nmap "against all machines", this is silly - use netstat.
Also check with netstat -ltp whether X is listening anywhere at all on
the machine, and add the appropriate network(s) you want to conenct
from (to xhost? I don't use this meself, I'm a VNC junkie ;-)
--
Jeroen Geilman
All your bits are belong to us. |