Re: X not running on port 6000?
Re: X not running on port 6000?
- Subject: Re: X not running on port 6000?
- From: Todd Sampson <email@hidden>
- Date: Sun, 21 Aug 2005 09:09:45 -0500
Title: Re: X not running on port 6000?
I had a problem where I couldn’t connect with telnet. The email below solved my problem. I don’t know that it is your problem as well, but it might give you another hint. In my case ssh –X worked but telnet didn’t.
Regards and good luck,
todd
The parameters of the X Window server have been chosen by Apple to allow only ssh -Y connexions and remote display. Generally "xhost +hostname" is not secure. In those cases where the network is secure (or if there is no other solution), it is possible to activate the traditional method.
All you have to do is to type the following command, in a X11 xterm on your Mac :
defaults write com.apple.x11 nolisten_tcp -boolean false
You can check the value of the nolisten_tcp parameter with the command
defaults read com.apple.x11
You will see the value "nolisten_tcp" = 0 (the value was "1" before)
Note that if you change your X11 preferences via the menu X11 -> Preferences... the parameter nolisten_tcp will be reset to "1" (true); you will have to change it again.
There is another method which can be used : MIT-Magic-Cookie. You don't use xhost +, just setenv DISPLAY on the remote host. Both the X11 server and the X11 client must run xauth.
Once again xauth must be enabled on the Mac :
defaults write com.apple.x11 no_auth -boolean false
You must exchange keys between the Mac and the remote unix station. It is heavier to use, but it is secure.
I hope your problem will be solved (tell me). I can now use rlogin, rsh on remote Sun Stations and send the display to my Mac with setenv DISPLAY myhost:0.
> From: Eric Brown <email@hidden>
> Date: Sat, 20 Aug 2005 20:38:10 -0700
> To: <email@hidden>
> Cc: x11-users <email@hidden>
> Subject: Re: X not running on port 6000?
>
> Didn't work. I did install from the Tiger CD and about now says
> version 1.1.
> Since it didn't work, I tried deleting X11.app and /etc/X11 and
> reinstall -- still no luck.
>
> I still get:
> $ telnet localhost 6000
> Trying 127.0.0.1...
> telnet: connect to address 127.0.0.1: Connection refused
> telnet: Unable to connect to remote host
>
> I've tried starting X with and without the firewall on.
>
> I did try ssh -X and ssh -Y. I think both of those just forward port
> 6000 though and the thing isn't running on port 6000. (I did turn on
> X11 forwarding on in my remote host and rebooted it -- no luck.) I'm
> not even clear how DISPLAY=:0.0 on my local system is working -- must
> be a socket in the file-system somewhere.
>
> Where is what port and whether to listen configured anyway?
>
> This really should work... I'm not sure what is going on.
>
>
> On Aug 20, 2005, at 6:59 PM, Mark J. Reed wrote:
>
>> ISTR Tiger has its own version of X11 - it's on the CD. Install it
>> and you should find your X server listening on port 6000 on all IPs,
>> as it is on my system (10.4.2).
>>
>> You're still better off using ssh X11 forwarding. It's not port
>> forwarding you need to turn on, but X11 forwarding in the
>> configuration of the remote ssh daemon. Then ssh -X will work. If
>> you can't control that config, then you can fake it by explicitly
>> forwarding remote port 6000 + n to local port 6000 and manually
>> setting DISPLAY on the remote system to :n.
>>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> X11-users mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden