Cygwin startxdmcp.bat – Displays Blank/Black X Window

Written by James McDonald

March 16, 2011

Cygwin on a Windows 7 Box.
Start Cygwin Bash Shell and issue startxdmcp command:

# where is the IP of the remote Linux Box
# you are trying to get a login window from

# try it raw aswell, no change
XWin.exe -ac -query

Windows 7 Cygwin XWin displays black / blank screen

Make sure the DNS Record for you local computer is correct

rem Find out what the dns server thinks the IP Address is
C:\Users\jmuser>nslookup mypc
Server:  dnsserver.home.local

Name:    mypc.home.local
REM This differs from what the actual address is

REM Issue ipconfig command to re-register the workstations
REM DNS Record
REM You have to be an administrator to do this I think.
C:\Users\jmuser>ipconfig /registerdns

Windows IP Configuration

Registration of the DNS resource records for all adapters of this computer has b
een initiated. Any errors will be reported in the Event Viewer in 15 minutes.

REM Check that it's worked.
C:\Users\jmuser>nslookup mypc
Server:  dnsserver.home.local

Name:    mypc.home.local

So as far as I can tell if the DNS record for you XDMCP client is wrong the remote Linux computer serving the XDMCP login screen will resolve the wrong IP and the login screen won’t appear on the local computer.


# working now


Submit a Comment

Your email address will not be published. Required fields are marked *

You May Also Like…

Toggen builds a new website

So I have built and hosted a new website for Roger Clark Pest Management they are a family owned and operated Pest...


Just downloaded WizTree (not a sponsor) from It seems to do what it says on the tin which is...

Scam call from “Telstra”

Just had a call from a man with a sub-continental accent from caller ID 0734946596 Told me there was problem with my...