Operating System - HP-UX
1824881 Members
3956 Online
109675 Solutions
New Discussion юеВ

error: Xlib: connection to "host:0.0" refused by server

 
Jagadesh_2
Regular Advisor

error: Xlib: connection to "host:0.0" refused by server

Hi,

We have cygwin (Xwindows) application installed in the windows server. We will be using that application to open the HPUX servers GUI applications. This seems to be working for one server. When i try to open the same kind of oracle application from the other server after exporting the display variable (export DISPLAY=10.114.17.164:0.0), i am getting this error

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

when tried to open sam application, the followingerror is displayed

error:
-----------------------
# sam
Xlib: connection to "10.114.17.164:0.0" refused by server
Xlib: No protocol specified


The DISPLAY environment variable is set to "10.114.17.164:0.0", but
the current configuration won't allow sam to run on that display.

The DISPLAY environment variable may be incorrect, or, if you are
running sam remotely, you may need to allow the remote system
to access your local X server by typing

/usr/bin/X11/xhost +server1

on your local machine.
-------------------------

let me know how to fix this error. The same is required for installing oracle.

thanks / jagadesh
7 REPLIES 7
Alex Lavrov.
Honored Contributor

Re: error: Xlib: connection to "host:0.0" refused by server

Try to execute "xwin" wi th "-ac" option. It disables all the access restrictions.

try it, to make sure that this is a security issue and not other.

Alex.
I don't give a damn for a man that can only spell a word one way. (M. Twain)
Steven E. Protter
Exalted Contributor

Re: error: Xlib: connection to "host:0.0" refused by server

Also, make sure there isn't a firewall interfering, like iptables/ipfilter blocking port 7000.

Windows servers now have onerous firewalls built in as well.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Jagadesh_2
Regular Advisor

Re: error: Xlib: connection to "host:0.0" refused by server

thanks for the sugessions.
How to make sure that from the server side Xwindows is allowed or not.
When i try
#xhost +
I am getting this error
xhost +
xhost: unable to open display

Bejoy C Alias
Respected Contributor

Re: error: Xlib: connection to "host:0.0" refused by server

10.114.17.164 - I hope this is the ip of the second server where u want to open the display . If not , set the DISPLAY variable to the ip of the machine on which u want to get the second display .
Be Always Joy ......
morganelan
Trusted Contributor

Re: error: Xlib: connection to "host:0.0" refused by server

Hi Jagadesh,
xhost + is a Xwindows base command so to run this command you must go to Xwindowsw environtment such as from Linux/HP server that support XWindows Display (must have vga card and graphical monitor) and If from client you must install telnet software that support graphical interface such as reflectionX.
Kamal Mirdad
Alex Lavrov.
Honored Contributor

Re: error: Xlib: connection to "host:0.0" refused by server

I think you are a bit confused. The X server is running on your windows machine and accepting connection from the server, where the gui application runs and displays that gui. So, all the restrictions must be removed on the windows box, because it's the one who listening and accepting connections.

Did the option "-ac" worked?
I don't give a damn for a man that can only spell a word one way. (M. Twain)
Balasubramanian S
Frequent Advisor

Re: error: Xlib: connection to "host:0.0" refused by server

Jagadesh, you need to add "10.114.17.164" in
to the /etc/hosts file.

If you find any error message in "/var/dt/Xerrors" file, please update us.