"Can't open display" occurs in tigervnc after upgrade to RHEL6.8

Solution Verified - Updated -

Issue

  • "Can't open display" occurs in tigervnc after upgrade tigervnc-server to tigervnc-server-1.1.0-18.el6 (RHEL 6.8)
  • After login to remote desktop via VNCviewer, X application can display locally, but cannot forward via TCP. Eg, after login to remote desktop via vncviewer, open a terminal inside vncviewer, and try:
  $ echo $DISPLAY
  :2.0
  $ xclock <---- Succeed.

  $ ip a | grep inet | grep global
  192.168.122.46

  $ xhost +
  $ export DISPLAY=192.168.122.46:2.0
  $ xclock
  Error: Can't open display: 192.168.122.46:2.0  <---- Fail

Environment

  • Red Hat Enterprise Linux 6.8
  • TigerVNC 1.1.0-18.el6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.