Allow Incoming TCP Connections for X11 on a RedHat (RHEL) System

Red Hat Enterprise Linux 8 Red Hat Enterprise Linux 8 Starting with RHEL4, the system only accepts local (socket-based) X11 server connections. This means that if you go to another Unix server and try forwarding X11 output by using DISPLAY variable to point to your RHEL box, it will no longer work.

Enabling TCP connections to X11

In order to make your RHEL system accept TCP connections for X11, here’s what you need to do:

In /etc/X11/gdm/gdm.conf, uncomment the


line and change it to


That’s it! Restart gdm and enjoy!

See Also

Contact Me

Follow me on Facebook, Twitter or Telegram:
I learn with Educative: Educative
IT Consultancy
I'm a principal consultant with Tech Stack Solutions. I help with cloud architectrure, AWS deployments and automated management of Unix/Linux infrastructure. Get in touch!
Recent Articles
24 Mar 2024

Homelab: Mac Pro 2013 32GB

30 Sep 2023

macOS Sonoma 14.0

26 Sep 2023

Video: What Browser Do You Use?

Recent Tweets