-   Linux - Security (
-   -   XDM listening to ports (

tarballedtux 04-13-2002 09:20 PM

XDM listening to ports
I have read through the posts of other users experienceing this problem with startx but my problem is about xdm. How do I prevent X from listening to ports 6000:6063 when using xdm. I'm probably just too blind to see it when I searched the forum.

Thanks in advance.

trickykid 04-13-2002 09:25 PM

startx -- -nolisten tcp

tarballedtux 04-13-2002 09:33 PM

my problem is for xdm not startx

trickykid 04-13-2002 10:00 PM

oops.. yeah, just thought about that. have no idea as i never use xdm.

unSpawn 04-14-2002 02:47 AM

Notfromkansas made it work by adding a "nolisten tcp" line to /etc/X11/xdm/Xservers.

Notfromkansas 04-17-2002 04:11 AM

This is what I found:

if you start X from the command line:

call it as
X -nolisten TCP
or startx -- -nolisten TCP

if you start X with the kde login:

change the line at the bottom of
/etc/X11/xdm/Xservers from

:0 local /bin/nice -n -10 /usr/X11R6/bin/X -deferglyphs 16

:0 local /bin/nice -n -10 /usr/X11R6/bin/X -deferglyphs 16 -nolisten TCP

if you start X with the gnome login:
change the line at the bottom of


command=/usr/bin/X11/X -deferglyphs 16

command=/usr/bin/X11/X -deferglyphs 16 -nolisten TCP

Ps. Remember its TCP not tcp. I had a lot of fun with that one

glock19 04-26-2002 01:07 PM

How do you get X to listen on the ssh encrypted port?

unSpawn 04-28-2002 05:25 AM

IMO its the other way around, adapt the stunnel to where the source port is, read a X11 forwarding/tunneling HOWTO/FAQ at
Btw don't tack on questions on like that, add a new thread instead.

All times are GMT -5. The time now is 12:14 PM.