On the local machine

$ xhost +

$ xhost +some.host.com

On the remote machine

#!/bin/bash
DISPLAY=195.114.113.240:0
export DISPLAY

FreeNx Ubuntu

NXServer