There are 3 kind way I have tried,
1.
/usr/X11R6/bin/X -query XXX.XXX.XXX.XXX
2.
/usr/X11R6/bin/Xephyr -query XXX.XXX.XXX.XXX -screen 800x600
3.
/usr/X11R6/bin/Xhost + XXX.XXX.XXX.XXX
/usr/X11R6/bin/Xnest -query XX.XXX.XXX.XXX -geometry 800x600
XXX.XXX.XXX.XXX is the server IP Address which you want to connect
個人比較喜歡使用第一個方式連線到我工作常用的Solaris Server.
至於Linux或其他Unix Like的伺服器需要額外設定這裡不討論。
Reference