Operating System - HP-UX
1753481 Members
4327 Online
108794 Solutions
New Discussion юеВ

vncserver errors xsetroot: unable to open display 'hostname'

 
DJ7
Visitor

vncserver errors xsetroot: unable to open display 'hostname'

Hi All,

Iam working on HP-UX 11.31 machine through an Ultra VNC viewer from my windows machine. VNC was working fine till yesterday, but today when I do a VNC it gives 'Failed to connect to the server' message.

As Iam able to connect to HP-UX machine through SSH I stopped and restarted the VNCSERVER. Still Iam facing the same issue. When I checked the vnc log I see below errors:

xsetroot: unable to open display 'hostname:1'
xterm Xt error: Can't open display: %s
twm: unable to open display "hostname:1"

I have not changed anything and Iam not sure what the issue is. Has anybody faced a similar issue and able to resolve it.

Thanks in advance.

4 REPLIES 4
Torsten.
Acclaimed Contributor

Re: vncserver errors xsetroot: unable to open display 'hostname'

If I understand this correctly the application wants to connect to the X-server (this part is running on your windows PC).

Any application/firewall/ etc. issue there?

 


Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
ranganath ramachandra
Esteemed Contributor

Re: vncserver errors xsetroot: unable to open display 'hostname'

Have you confirmed that
- the vnc server process is alive (e.g. using the 'ps' command)
- the 'hostname' resolves properly and is reachable ('ping')
- the display number (1) is correct (maybe from the parameters sent to the vnc server as visible with 'ps -x' etc, or perhaps simply checking whether a telnet connection to port 6001 of hostname succeeds - 'telnet hostname 6001')
?

 
--
ranga
[i work for hpe]

Accept or Kudo

DJ7
Visitor

Re: vncserver errors xsetroot: unable to open display 'hostname'

Thanks for your reply..

ps shows the vncserver process running and also Iam able to ping the machine.

But telnet fails with error "Could not open connection to the host on port".

Thanks

ranganath ramachandra
Esteemed Contributor

Re: vncserver errors xsetroot: unable to open display 'hostname'

Does the vnc server command line not show the display or port number ?
You could also use lsof to find out what port number the server is listening on.

 
--
ranga
[i work for hpe]

Accept or Kudo