LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 08-25-2006, 07:23 AM   #1
kdipankar
LQ Newbie
 
Registered: Aug 2006
Posts: 5

Rep: Reputation: 0
Xlib: connection to "10.0.209.19:0.0" refused by server


I tried to connect to the linux server with the help of putty. The server ip is 10.0.209.19. I set the $DISPLAY as 10.0.209.19:0. I am getting the following error in my putty window when I try with startkde at the command prompt.
Xlib: connection to "10.0.209.19:0.0" refused by server
Xlib: No protocol specified

xset: unable to open display "10.0.209.19:0"
Xlib: connection to "10.0.209.19:0.0" refused by server
Xlib: No protocol specified

xsetroot: unable to open display '10.0.209.19:0'
Xlib: connection to "10.0.209.19:0.0" refused by server
Xlib: No protocol specified

xrdb: Can't open display '10.0.209.19:0'
startkde: Starting up...
Xlib: connection to "10.0.209.19:0.0" refused by server
Xlib: No protocol specified

ksplash: cannot connect to X server 10.0.209.19:0
Xlib: connection to "10.0.209.19:0.0" refused by server
Xlib: No protocol specified

kded: cannot connect to X server 10.0.209.19:0
DCOP aborting call from 'anonymous-9273' to 'kded'
Xlib: connection to "10.0.209.19:0.0" refused by server
Xlib: No protocol specified

kdeinit: Can't connect to the X Server.
kdeinit: Might not terminate at end of session.
Xlib: connection to "10.0.209.19:0.0" refused by server
Xlib: No protocol specified

kcminit: cannot connect to X server 10.0.209.19:0
Xlib: connection to "10.0.209.19:0.0" refused by server
Xlib: No protocol specified

knotify: cannot connect to X server 10.0.209.19:0
DCOP aborting call from 'anonymous-9276' to 'knotify'
Xlib: connection to "10.0.209.19:0.0" refused by server
Xlib: No protocol specified

Xlib: connection to "10.0.209.19:0.0" refused by server
Xlib: No protocol specified

ksmserver: cannot connect to X server 10.0.209.19:0
startkde: Shutting down...
KLauncher: Exiting on signal 1
startkde: Running shutdown scripts...
startkde: Done.
 
Old 08-25-2006, 08:11 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
You should run
Code:
xhost +xx.xx.xx.xx
or
xhost +
xx.xx.xx.xx is the IP of the box you're trying to connect to the server. The 2nd command allows connection from any host.
 
Old 08-27-2006, 11:34 PM   #3
kdipankar
LQ Newbie
 
Registered: Aug 2006
Posts: 5

Original Poster
Rep: Reputation: 0
xhost not working.

I have tried with xhost. The following error message is coming.
xhost: unable to open display ""
 
Old 08-27-2006, 11:37 PM   #4
kdipankar
LQ Newbie
 
Registered: Aug 2006
Posts: 5

Original Poster
Rep: Reputation: 0
This is what I did .....

[faculty@tcsserver faculty]$ export DISPLAY="10.0.209.19:0"
[faculty@tcsserver faculty]$ echo $DISPLAY
10.0.209.19:0
[faculty@tcsserver faculty]$ xhost +10.0.209.19
Xlib: connection to "10.0.209.19:0.0" refused by server
Xlib: No protocol specified

xhost: unable to open display "10.0.209.19:0"
[faculty@tcsserver faculty]$
 
Old 08-28-2006, 01:59 AM   #5
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
The DISPLAY var must correnspond to your client ip (the box running putty). Then at your client your run the xhost command.
If you use putty with x-forwarding there is no need to set these things
 
Old 08-29-2006, 01:36 AM   #6
kdipankar
LQ Newbie
 
Registered: Aug 2006
Posts: 5

Original Poster
Rep: Reputation: 0
following error coming.

[faculty@tcsserver faculty]$ xhost +
X connection to localhost:11.0 broken (explicit kill or server shutdown).

Please help...
 
Old 08-30-2006, 05:17 AM   #7
kdipankar
LQ Newbie
 
Registered: Aug 2006
Posts: 5

Original Poster
Rep: Reputation: 0
please help me...

I am facing the same problem.
 
Old 04-06-2009, 09:18 AM   #8
fedder22
LQ Newbie
 
Registered: Jan 2009
Posts: 9

Rep: Reputation: 0
any solution to this? very similar issue here as well
 
Old 04-06-2009, 10:56 PM   #9
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (SW Chicago 'burbs)
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,801

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Quote:
any solution to this? very similar issue here as well
Is the client that you're trying to open windows on allowing the server to connect? Try:
Code:
netstat -an | grep 6000
If nothing is returned, there's nothing listening to receive a connection from your server. You can issue "xhost +" 'til the cows come home and nothing's going to be able to connnect until you tell the desktop that you want to allow connections to port 6000.

You'll have to open up port 6000 on your desktop to allow the remote connection. On SUSE you'd do this using the "/etc/sysconfig editor" found on the YaST menu selection from the main panel menu. and then expand the "Display Manager" branch. You'll want to change the setting for the "TCP port 6000 open" variable. I didn't see what distribution you're using but I'd guess that a similar sysconfig editor is available. If not, you ought to be able to find the variabe to change in "/etc/sysconfig/displaymanager". You'll need to either log out and back in again for the setting change to take effect (if you're booting to level 5) or exit X Windows and re-issue startx (f you boot into level 3). If your change was done correctly, you should be able to rerun the above "netstat" command and see something like:
Code:
$ netstat -an | grep 6000
tcp        0      0 0.0.0.0:6000            0.0.0.0:*               LISTEN      
tcp        0      0 :::6000                 :::*                    LISTEN
Hope this helps...

Cheers,

Rick
 
  


Reply



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
Xlib: connection to ":0.0" refused by server Xlib: No protocol specified eyalkz Linux - Newbie 12 11-27-2018 01:30 PM
Xlib: connection to ":0.0" refused by server Xlib: No protocol specified eyalkz Programming 1 03-02-2004 08:22 AM
Wine not working. Xlib: connection to ":0.0" refused by server Xerop Linux - General 1 02-18-2004 09:37 PM
What is "Xlib: connection to ":0.0" refused by server " rack201 Linux - Software 1 02-04-2004 07:49 AM
Mplayer: [Xlib: connection to ":0.0" refused by server] elluva Slackware 2 12-18-2003 06:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 09:18 AM.

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