LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-06-2003, 05:27 PM   #1
xeebee
LQ Newbie
 
Registered: Aug 2003
Posts: 6

Rep: Reputation: 0
Smile _X11TransSocketINETConnect


Hi,

I would like to run a software on a computer with linux and to see it on another computer linux or windows via telnet.

The software is a java program so I should see it the graphical interface of the soft when I run it in a telnet terminal.

When I run it, it's written :
_X11TransSocketINETConnect: Can't connect: errno = 111

I can start the Xserver so it should be well configed. I tried to run it from a linux computer with the option -display but it's the same result.

I can run the software on the computer where it is. The only way I find to run the software is with VNC but the VNC windows is always shuting down.

Does somebody have an idee to help al least a liitle bit about the error _X11... ? Where does come from this error?

Xavier
 
Old 08-06-2003, 06:51 PM   #2
AltF4
Member
 
Registered: Sep 2002
Location: .at
Distribution: SuSE, Knoppix
Posts: 532

Rep: Reputation: 31
/usr/include/asm/errno.h

#define ECONNREFUSED 111 /* Connection refused */

is your DISPLAY variable set up correctly (e.g. DISPLAY=mymachine.local:0.0)
and exported (export DISPLAY)
does your X server allow you to connect ?
(xhost +myclient.local)
 
Old 08-06-2003, 07:48 PM   #3
xeebee
LQ Newbie
 
Registered: Aug 2003
Posts: 6

Original Poster
Rep: Reputation: 0
the computer running the program is ROBOT1 (server side)
the computer on which I want to see it is XAVIER (client side)

The variable DISPLAY on the server side is set to 'XAVIER:0.0'
I run the command 'xhost +robot1.asl' on the client side and it says that it adds robot1.asl to the access control list
But it's still the same thing when I run the program

Xavier
 
Old 08-11-2003, 03:42 AM   #4
AltF4
Member
 
Registered: Sep 2002
Location: .at
Distribution: SuSE, Knoppix
Posts: 532

Rep: Reputation: 31
can you start other programs (e.g. xterm, xclock) ?
 
Old 08-11-2003, 03:13 PM   #5
xeebee
LQ Newbie
 
Registered: Aug 2003
Posts: 6

Original Poster
Rep: Reputation: 0
No I can't run other programs like xterm or xclock. The error is the same.
 
Old 08-11-2003, 05:09 PM   #6
AltF4
Member
 
Registered: Sep 2002
Location: .at
Distribution: SuSE, Knoppix
Posts: 532

Rep: Reputation: 31
try this:

1) log on to your SERVER ( the one with the big display and the mouse is the server in X11 :-) and type "xhost +" to disable access control completely and disable any firewall you might have running
2) log in to a shell (assuming bash) on your client ( the one running the program in X11 terms )
3) find the address or name of your server and check if it is reachable on the network (e.g. the server is named "bobo" - test it with "ping bobo")
4) type "DISPLAY=bobo:0.0" and then "export DISPLAY" to tell your client where to open the window
5) start "xterm" to verify the setup
 
Old 08-11-2003, 06:09 PM   #7
xeebee
LQ Newbie
 
Registered: Aug 2003
Posts: 6

Original Poster
Rep: Reputation: 0
I tried to run the command xhost via telnet but it gives me the same error. I tried to run the command directly on the computer and it gives "unable to display "" " but the xserver wasn't running when I did this.

In fact the server is a robot without screen and mouse. I can plug a screen but no mouse on the robot's PC (server). That's why I would like to run program from other computer. Is it a problem? Do I have to run xhost on the computer server with xserver running?

I can run xserver on the robot but it is not usefull. Do I have to run the xserver to do all this? I tried with running and not running but it's the same error.
 
Old 08-13-2003, 02:54 PM   #8
AltF4
Member
 
Registered: Sep 2002
Location: .at
Distribution: SuSE, Knoppix
Posts: 532

Rep: Reputation: 31
no xserver needed to run client programs

i suspect you didn not set/export the DISPLAY variable correctly
 
Old 08-14-2003, 04:43 PM   #9
xeebee
LQ Newbie
 
Registered: Aug 2003
Posts: 6

Original Poster
Rep: Reputation: 0
Maybe I didn't set/export the DISPLAY variable correctly.

But when I run "$DISPLAY" on the client side, it gives XAVIER:0.0 . XAVIER is the name for the computer server.
 
Old 08-15-2003, 07:12 AM   #10
AltF4
Member
 
Registered: Sep 2002
Location: .at
Distribution: SuSE, Knoppix
Posts: 532

Rep: Reputation: 31
>But when I run "$DISPLAY" on
how do you "run" $DISPLAY ?????
did you export it ?
 
Old 08-18-2003, 05:00 PM   #11
xeebee
LQ Newbie
 
Registered: Aug 2003
Posts: 6

Original Poster
Rep: Reputation: 0
I did export it before

I run $DISPLAY to to know what is in the variable.
 
Old 08-23-2003, 08:05 AM   #12
Zayd
LQ Newbie
 
Registered: Aug 2003
Posts: 4

Rep: Reputation: 0
i hve a simialar problem with when i run XF86Setup i configure all hardware on my componce thts done i ask it to strt the x server and it keeps sayin _X11TransSocketINETConnect: Can't connect: errno = 111 over again until it says giving up plz help
 
Old 08-25-2003, 08:14 PM   #13
AltF4
Member
 
Registered: Sep 2002
Location: .at
Distribution: SuSE, Knoppix
Posts: 532

Rep: Reputation: 31
hope i understood your configuration
xavier - the X server (the machine with the GUI)
robot1 - the X client (the machine running xterm)

check your /etc/hosts file on both machines
e.g.
10.0.0.1 xavier
10.0.0.2 robot1



try this :

on xavier:
1) RUN: ping robot1
if robot1 responds correctly
2) open a local xterm
3) RUN: xhost +robot1
to allow host robot1 to access the display on xavier

then:

on robot1:
1) RUN: ping xavier
if xavier responds correctly
2) RUN: xterm -display "xavier:0.0"
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration