Why must X open TCP by default?

Chris H bsd-lists at bsdforge.com
Wed Mar 2 20:56:49 UTC 2016


On Wed, 2 Mar 2016 12:44:18 -0800 Freddie Cash <fjwcash at gmail.com> wrote

> On Wed, Mar 2, 2016 at 12:40 PM, Chris H <bsd-lists at bsdforge.com> wrote:
> 
> > Hello,
> >  This is regarding 9-STABLE. All of the 9-STABLE boxes
> > that have Xorg installed, and running on them, insist on
> > opening TCP port 6000; as reported by sockstat(1)
> >
> > Xorg       1295  1  tcp6   *:6000                *:*
> > Xorg       1295  3  tcp4   *:6000                *:*
> >
> > I see that the (current(ish)) documentation indicates
> > that this option is off, by default, and can be enabled
> > by passing -listen_tcp to startx(1). This seems to hold
> > true, as all of my -CURRENT boxes do not show port 6000
> > as being open while X is running. So my question is;
> > how can I prevent X from opening tcp ports?
> > I attempted;
> > startx -nolisten tcp
> >
> 
> ​Does the following work (note the extra -- in the command)?​
> 
> ​startx -- -nolisten tcp​
Hello, Freddie.
Good catch, by both you, and Brandon. I just tried it. But
sockstat(1) still reports 6000 being open. Closing the X
server, and session, reveal that 6000 is no longer open.
Bummer.

Thanks to both of you for the fast, and informative reply!

--Chris




More information about the freebsd-stable mailing list