X clients use the value of the DISPLAY environment variable to get the name of the server to which they should connect.
To run clients remotely, or locally as another user, follow these steps:
On the machine running the server, allow another user access.
For this example, the host is remotehost.
Run the client program.