I want to display xclock on another computer.
On my computer (111) I am able to ping the other computer (222) inside my home network:
$ ifconfig wlan0
wlan0 Link encap:Ethernet HWaddr 44:55:66:77:88:99
inet addr:192.168.0.111 Bcast:192.168.0.255 Mask:255.255.255.0
$ ping 192.168.0.222
The router is a D-Link DIR-655 Wireless N Gigabit Router.
$ xclock -display 192.168.0.111:0
Displays the xclock on my computer (111) as expected. On the other computer (222):
$ xhost +
But then back on my computer (111) it also displays on my computer when changed to:
$ xclock -display 192.168.0.222:0
To attempt to verify the use of the -display switch:
$ xclock -display 192.168.0.111:0.1
Error: Can't open display: 192.168.0.111:0.1
$ ping 192.168.0.333
ping: unknown host 192.168.0.333
$ xclock -display 192.168.0.333:0
I would expect it to fail but it also displays on my computer (111) but with a bit of a delay. These results tells me that the display argument is getting to xclock.
$ uname -a
Linux mycomputer 3.2.0-27-generic #43-Ubuntu SMP Fri Jul 6 14:46:35 UTC 2012 i686 i686 i386 GNU/Linux
I am using LXDE rather than GNOME or KDE.
I am only attempting to get xclock to display and am not interested in addressing security issues in this question.