<div dir="ltr"><div dir="ltr"><div dir="ltr">Hi.<div><br></div><div>I don't want a solution, only to understand what's happening, and where to find the explanation.</div><div><br></div><div>I'm using CentOS 7, despite I was an Slackware and Gentoo user (for more than 10 years).</div><div><br></div><div>After I connect into a VPN I get the message (when I'm trying to open X apps):</div><div><br></div><div><div><b>Invalid MIT-MAGIC-COOKIE-1 key</b></div><div><b>(geeqie:12853): Gtk-WARNING **: cannot open display: :0</b></div></div><div><br></div><div>That's a very ordinary and common message for Linux users, I know.</div><div><br></div><div>Merging Xauthorit or exporting DISPLAY variable, using all hostnames/IP as possible, doesn't fix the problem.</div><div><br></div><div>Even doing a SSH to localhost (with X11 forward enabled) doesn't work.</div><div><br></div><div>If I execute xhost + I still get the error:</div><div><br></div><div><b>Invalid MIT-MAGIC-COOKIE-1 keyxhost:  unable to open display ":0"</b><br></div><div><br></div><div>So, I only want to understand how Xorg treat the relation among hostname, IP, DISPLAY, users etc.</div><div><br></div><div>For now, the only way I can solve the problem is to exit X and start again, what is a kind of nightmare in my daily work.</div><div><br></div><div>Best regards</div><div>Alexander</div><div><br></div><div><br></div><div><br></div></div></div></div>