If you are using Cygwin to get a display server for your Oracle GUI-driven installations or tools like dbca, asmca (as I do from time to time), you can encounter another annoying problem with X11 forwarding in example while using putty – but not when using Cygwin SSH!!

[maciek@oel12crac1n1 ~]# xclock
PuTTY X11 proxy: unable to connect to forwarded X server: Network error: Connection refused
Error: Can't open display: localhost:10.0

Googling the internet I found this nice discussion http://unix.stackexchange.com/questions/202043/putty-cygwinx-and-x11-forwarding-connection-refused

It turns out that in new Cygwin X-Server version (I have 1.17.4) by default CygwinX no longer listens for tcp connections (Cyg SSH is using Unix sockets to connect so it works properly). To enable tcp connections “-listen tcp” needs to be added to the command line parameters.

In my case windows shortcut looks like this below

C:\cygwin64\bin\run.exe --quote /usr/bin/bash.exe -l -c "cd; /usr/bin/startxwin -- -multiwindow -listen tcp"

After the change of the invoking line in the shortcut exit and start X-Server again.

As you can see it had helped















Hope it saves you a lot of time!

About the author

maciej tokar
Maciej Tokar

An Oracle technology geek and crazy long distance runner, DBA24 Owner
Senior Oracle DBA / Consultant / [OCP10g, OCP12c, OCE RAC 10g] / [experience: 9y+]
Currently working for Bluegarden (Oslo Norway) by Miratech Group
Past: Mastercard / Trevica by Britenet, Citi International PLC, PZU

View Maciej Tokar's profile on LinkedIn         logoDB4
LinkedIn Auto Publish Powered By : XYZScripts.com