1752798 Members
5935 Online
108789 Solutions
New Discussion юеВ

Re: Pb X server

 
klb
Valued Contributor

Re: Pb X server


Right, well, if we lived in a perfect world, all servers and software installations would behave exactly the same. If one works, all the others would too!!!

You know we don't live in that world, so just humor me and try the suggestion.

The bottom line is that your error message states clearly that the server is refusing the connection. The server is Xming and Xming is refusing the connection.

klb
Valued Contributor

Re: Pb X server

I just did a little test:

Windows:
started Xming by just clicking Xming

UNIX ( hpux 11.11 ):
myhost# export DISPLAY=windowsbox:0.0
myhost# xclock
Xlib: connection to "windowsbox:0.0" refused by server
Xlib: No protocol specified

Now, I go back to the windowsbox and kill Xming, then...

UNIX:
myhost# xclock
Error: Can't open display: hqsv21:0.0

Now, I go back to the windowsbox and restart Xming using the method above ( where we open access restrictions to all hosts )...

UNIX:
myhost# xclock
Warning: Missing charsets in String to FontSet conversion
Warning: Unable to load any usable fontset

... despite the warnings, the Xclock shows up on my windowsbox as expected.

This looks very much like the issue you are having, same error message and all.

So, I believe you do have an issue with Xming in this case. If you fire up Xming properly.

In the case above where Xming has REFUSED the connection, I went to the windowsbox and right clicked the Xming icon in the sys tray and clicked View Log. In that log, I found the following tidbits ( among other things )...

Welcome to the Xming X Server
Vendor: Colin HJarrison
Release: 6.9.0.31
FreeType2: 2.3.4

:
AUDIT: Mon May 09 16:41:54 2011: 1160 C:\Program Files\Xming\Xming.exe: client 4 rejected from ip X.X.X.X

So, if you'd like further proof your Xming installation is rejecting your X application, go have a look at its log file and you'll find the reject notice right in there.

I suspect your other Xming installations that are working were started with the the following options:

-ac ( removes access restrictions )

So, you could start Xming like this:

\path\to\Xming.exe :0 -clipboard -multiwindow -ac

That will fix your issue...

-klb
letters
Occasional Advisor

Re: Pb X server

Thanks for all Klb you have right !
But i don't understand why with another machine and Xming configured with access control xclock started ?
Steven Schweda
Honored Contributor

Re: Pb X server

> But i don't understand why with another
> machine and Xming configured with access
> control xclock started ?

How many of us, do you think, can see exactly
how your "Xming" is "configured with access
control"?

> [...] I don't know enough about Xming
> to tell you how to show and set the list of
> permitted clients. [...]

Still true, but at least one of us should try
to find out, and I probably care less than
some others.