This is the mail archive of the
cygwin-xfree@cygwin.com
mailing list for the Cygwin XFree86 project.
RE: Info on "Can't open display"
- To: "'Robert Collins'" <robert dot collins at itdomain dot com dot au>, "'cygwin-xfree at cygwin dot com'" <cygwin-xfree at cygwin dot com>
- Subject: RE: Info on "Can't open display"
- From: Suhaib Siddiqi <ssiddiqi at inspirepharm dot com>
- Date: Fri, 15 Jun 2001 07:01:22 -0400
> > Sorry, I meant any suggestions for other xclients
> > (non-cygwin/xfree86) that
> > I could test with. I don't know many other free xclient apps
> > for windows.
>
> Unless you have access to Exceed or something like that, no
> suggestions
> sorry.
Exceed comes with bare minimum xclients. Could you try server and Xclients
from win32-x11 project (http://sources.redhat.com/win32-x11). The clients
and server
from there do not use Cygwin. The X uses only TC/IP connection, while
Cygwin/XFree86 uses UNIX domain socket. Things to try,
1) If you could display xclients from win32-x11 over Cygwin/Xfree86.
2) try to display xclients from Cygwin/Xfree86 over win32-x11 server.
Suhaib
>
> > >Have you examined this or attempted to confirm your guess? I
> > asked the
> > >question _because_ there are multiple answers.
> >
> > I've done my share of client/server socket programming and,
> > in general, the
> > following model is used in the most architectures:
> >
> > I haven't yet looked at the socket calls in TeraTermSSH but
> > you can see that
> > it is generally what is happening by playing with netstat.
> > It will show you
> > sshd listening to port 6010 on the remote host and you can
> > see TeraTermSSH's
> > connection from localhost random-port to localhost port 6000.
> > It is this
> > local connection that should be equivalent to the
> > cygwin/xfree86 xterm
> > connecting to localhost port 6000.
>
> A better tool to play with is
> http://www.sysinternals.com/ntw2k/freeware/tdimon.shtml TDIMon, which
> will let you see the actual calls being made.
>
> > >... You are wrong about "all tcp/ip client programs
> unbound". TCP/IP
> > >client can ask for a random port on a random interface (a)
> >
> >
> > >or a specific
> > >port on a random interface (still a - I wasn't worried about the
> > >partocular port)
> >
> > ... huh? How would you do that?
>
> I'm not sure... check the ssh client source code. It does something
> similar.
>
> > >or a specific port on a specific interface (one of b or c).
> >
> > ... using socket()...bind(), which is what server apps do.
>
> for outbound connections? I didn't think bind() was appropriate for
> that. Well live and learn().
>
> > >Chris, your guesssing is not helping debug the problem.
> Binding to a
> > >specific port on all interfaces != being "unbound" where you
> > bind to a
> > >port, and no specific interface. (Binding to all interfaces
> > you need to
> > >call bind() multiple times oince for each interface).
> >
> > Actually, this is untrue. If you specify INADDR_ANY in the
> > bind call, all
> > local interfaces are bound to one socket at the specified port.
>
> Ah. Ok I'll cede that - I know TCP/IP much better than socket
> programming.
>
> Rob
>