LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   xmessage origin (https://www.linuxquestions.org/questions/linux-networking-3/xmessage-origin-45038/)

zindadilfaiz 02-12-2003 01:07 AM

xmessage origin
 
How can I find out from where (which machine)
the xmessages I get on my machine are coming?
(I know how to prevent it, I want to know which
machine on internal LAN is sending them if I
have allowed many machines, by using xhost +.)

vladkrack 02-12-2003 05:54 AM

You can use:

# netstat -a

and

search for a line like:

tcp 0 0 <your machine>:6000 <the machine you want to find out>:1033 ESTABLISHED

Hope that helps ...

zindadilfaiz 02-19-2003 03:10 AM

Thanks for reply vladkrack.
But I found follwing is superior:
xlsclients -display <my IP address>:0.0
It directly gives name and IP of machine posting xmessage, including the command that invoked xmessage.


All times are GMT -5. The time now is 11:47 PM.