Use the environment variable XREMOTE_HOST as default.
-rwxr-xr-x 5072 xremote.sh