Using xhost, you can add or delete a remote host's permission to access the local display server. 
The xhost command is in the form: 
where: 
- +name
 Add the remote host named name to the list of 	computers allowed to connect to the X server.
- -name
 Remove name from the list of computers allowed to connect to to the X server.
- +
 Allow access to everyone (access control disabled).
- -
 Allow access only to computers in the list (access control enabled).
- blank
 Display current status and list of computers allowed to access the X server.
For example, the following command  allows the remote computer hpggggg to access your local display. 
For more information, refer to the xhost man page.