Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-31-2011, 04:17 AM   #1
LQ Newbie
Registered: Mar 2011
Posts: 2

Rep: Reputation: 0
Unhappy Can't Open Display localhost:0.0

I'm trying to connect to my linux server but I'm having some major problems. The server had OEL 5 installed and my local pc is running Windows XP. I'm using PuTTy to connect to the server with Xming running on my loacl machine. I login as root and run the following command -

export DISPLAY={ipaddress}:0.0

I then run xclock and get the following error -

Xlib: connection to "{ipaddress}:0.0" refused by server
Xlib: No protocol specified

Error: Can't open display: {ipaddress}:0.0

The strange thing is that on my bosses pc (who has got almost the exact same setup ie. PuTTy & Xming) is works perfectly.

Please help.

Thanx in advance.
Old 03-31-2011, 05:06 AM   #2
Senior Member
Registered: Jul 2004
Location: Skuttunge SWEDEN
Distribution: Debian preferably
Posts: 1,350

Rep: Reputation: 127Reputation: 127
Have you enabled X-forwarding on your server?
You do that in /etc/ssh/sshd_config:
X11Forwarding yes
Old 04-01-2011, 01:54 AM   #3
LQ Newbie
Registered: Mar 2011
Posts: 2

Original Poster
Rep: Reputation: 0
Yep. Like I said, works perfectly on my bosses pc but not on mine.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't open display: localhost:0.0 shpatil Linux - Newbie 2 12-01-2010 10:29 AM
[SOLVED] localhost port 25 not open linuxbird Linux - General 4 11-24-2010 11:17 PM
export display and Gtk-WARNING **: cannot open display: zimma Linux - Server 0 04-24-2009 03:51 AM
how do I display localhost ip address as a standard user blackdragonblood Linux - Networking 7 03-10-2006 07:02 PM
Could not open localhost in Win98 Frinux Linux - Networking 3 10-28-2002 12:23 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:27 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration