XDMCP question… I think 

Date: Wed, 25 Sep 2002 16:07:59 GMT
Newsgroups: comp.os.linux.x
> > I'm running LTSP on two boxes and it works great.  I can't get straight to
> > my mandrake 8.2 and graphic login is there, I choose my window manager and
> > everything works well.
> >
> > I wanted to add a terminal on my windows machine so that I could also
> > reach the server.  I installed cygwin and this script to start the Xwin
> > server:
> >
> > @echo off
> > if "%1"=="" goto noserver
> > goto allok
> > :noserver
> > echo Usage: xdm servername
> > goto end
> >
> > :allok
> > echo I'm here
> > set path=%PATH%;d:\cygwin\bin;d:\cygwin\usr\X11R6\bin
> > d:
> > chdir \cygwin\usr\X11R6\bin
> > XWin -query %1
> > :end
> >
> > I type in xdm 192.168.1.150 (address of the server) and all I get is the
> > grey screen with an X as if it cannot find the xdmcp server.  When I put
> > in a fake ip address the xserver doesn't even start so I am inclined to
> > believe that the client and server are connecting but not negotiating a
> > login. Can anyone suggest anything to help?
> >
> > Stupid assumptions:
> >
> > XDMCP is working for both ltsp and microimages MIX so it should work for
> > cygwin.
> >
> > Since the ltsp is working well then I xdmcp should be working for this
> > server I should not need to add anything else to the Xaccess file.
> >
> > etc/hosts is not relevant on either the client or the server.
>
> Assuming that Cygwin's X server works the same way as XFree86 on unix, two
> things come to mind to check for: 1) make sure the program "chooser" is
> installed, and 2) make sure your Mandrake system is listed in the Xaccess
> file.  See the section "CHOOSER" in the xdm(1) man page.
>
> Another thing you may want to try is starting Cygwin X, then go to the
> Mandrake system and run "xmessage -display <address of windows machine>
> Hello". If that fails, you may need to run xhost on the Windows machine
> first.

It took me a long time and looking at cygwin mailing lists, but finally I found out 2 very important pieces of information for those who want to use cygwin as a client on windows. One it prints a nice log of the x start. That was the first benefit. Here I found that for some reason that escapes me, cygwin was reporting to Linux that it was at 192.168.1.2xx (I can't remember the exact address right now). In actuality it is on 192.168.1.111. So the XDMCP was trying to respond to this ghost address. I then found a parameter called -from. So when I created a simple shortcut in windows with this syntax:

D:\cygwin\usr\X11R6\bin\XWin.exe -query 192.168.1.150 -from 192.168.1.111

It fired up beautifully. Really. Beautifully. Thanks for the help.

John