While digging into X Windows or X11 stuffI found that X display uses MIT-MAGIC-COOKIE to allow client-server to exchange display data.One thing I don't understand is that I am able to locate and view the MIT-MAGIC-COOKIE in the server(Xclient) which the commandxauth listand I see stuff likeJames5/unix:10  MIT-MAGIC-COOKIE-1  1bcafdd569b2e1e6dd0dfaf446f437a6James5/unix:13  MIT-MAGIC-COOKIE-1  5e536e4c17c94372ebc932f6d1c43abcJames5/unix:15  MIT-MAGIC-COOKIE-1  999ac8b086f2f8091aa970f40b739ff4James5/unix:11  MIT-MAGIC-COOKIE-1  89287e67dfc851c5e7188fc5b7e4dc31but from what I've learned, the user side should also have this cookie as well in order to compare and cookie from the received X display data.but when I come back to my 'user side' laptop and type Black@Black-PC ~$ xauth listxauth:  file /home/Black/.Xauthority does not existan error message like this appears...where on earth can I locate the .Xauthroity file in the user side?
where can I find the MIT-MAGIC-COOKIE in the user side?
xorg;x11;xdmcp
The X server's copy of the cookie is not stored in your home directory, sinceit's not associated with your user, but in the system files.If you find the X server process in ps you'll usually see it was startedwith an -auth argument specifying the path to the cookie file, such as:test  1498  1497   0   Jun 24 vt/7        9:47 /usr/bin/Xorg :0 -nolisten tcp -br -novtswitch -auth /tmp/gdm-auth-cookies-94aq