LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   X not accepting remote system connections (https://www.linuxquestions.org/questions/linux-software-2/x-not-accepting-remote-system-connections-342238/)

rdfoerster 07-11-2005 04:19 PM

X not accepting remote system connections
 
Just setup a fedora core 4 system and I am having issues with it not accepting X connections from remote systems.

An example of what was done is:

On the receiving system: xhost +192.168.10.194
On the remote system xterm --display 192.168.10.8:0.0

I get an error message of: "Error: Can't open display: 192.168.10.8:0.0"

That is all I should have to do for everything to work. I have even run xhost + to no avail.

I am using KDE 3.4 as the desktop.

On a side note anyone else have an issue of the install not intalling inetd or xinetd?

Thanks

masand 07-11-2005 04:27 PM

try with

"192.168.10.8:0"

instead of

"192.168.10.8:0.0"

rdfoerster 07-11-2005 04:53 PM

Gave it a try but no luck.

I ran an strace of the xterm command and received the following output over and over again.

rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGCHLD, NULL, {SIG_DFL}, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
nanosleep({1, 0}, {1, 0}) = 0
socket(PF_INET6, SOCK_STREAM, IPPROTO_IP) = 3
getrlimit(RLIMIT_NOFILE, {rlim_cur=1024, rlim_max=1024}) = 0
setsockopt(3, SOL_TCP, TCP_NODELAY, [1], 4) = 0
close(3) = 0
socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 3
getrlimit(RLIMIT_NOFILE, {rlim_cur=1024, rlim_max=1024}) = 0
setsockopt(3, SOL_TCP, TCP_NODELAY, [1], 4) = 0
setsockopt(3, SOL_SOCKET, SO_KEEPALIVE, [1], 4) = 0
connect(3, {sa_family=AF_INET, sin_port=htons(6000), sin_addr=inet_addr("192.168.10.8")}, 16) = -1 ECONNREFUSED (Connection refused)
close(3)

Could there be something that needs to be changed on FC4 for X to allow remote windowing?

jcliburn 07-11-2005 04:57 PM

Is your local firewall blocking port 6000?

rdfoerster 07-11-2005 05:01 PM

Firewall is off. Turned it off during install.

jcliburn 07-11-2005 05:17 PM

Assuming you used ssh to access the remote system, modify /etc/ssh/ssh_config on the local system and add

ForwardX11 yes

jcliburn 07-11-2005 05:27 PM

Quote:

Originally posted by jcliburn
Assuming you used ssh to access the remote system, modify /etc/ssh/ssh_config on the local system and add

ForwardX11 yes

And also, on the remote system, modify /etc/ssh/sshd_config and add

X11Forwarding yes

Sorry for leaving that out.

rdfoerster 07-11-2005 05:32 PM

Would like to go with that solution but unfortunatly some of the systems I work with don't have ssh and it is not available for the platform. (too old)
The computers are running X11R3.

The application that is running on them does not work on a newer version of the os.

Thanks for the suggestion though.

madluther 07-11-2005 05:50 PM

Perhaps the X server on the host is being launched with the '-nolisten tcp' option, in which case no connections will accepted. You should be able to see if this is the case with something like 'ps -aux | grep X'

HTH

Mad.

jcliburn 07-11-2005 06:45 PM

I think madluther hit on it. Try modifying /etc/X11/gdm/gdm.conf. Find the line that contains the string "Disallow" and add the following line after it:

DisallowTCP=false

You'll need to restart X to make the change take effect.

rdfoerster 07-11-2005 06:49 PM

That is it. The nolisten option is set on the command line.

Thanks


All times are GMT -5. The time now is 07:59 AM.