Bug 203826 - x11-servers/xorg-server In X server after 1.17, default configuration is now -nolisten tcp
Summary: x11-servers/xorg-server In X server after 1.17, default configuration is now ...
Status: Closed Not A Bug
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-x11 (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-16 18:07 UTC by Yasuhito FUTATSUKI
Modified: 2016-08-28 10:05 UTC (History)
3 users (show)

See Also:
bugzilla: maintainer-feedback? (x11)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yasuhito FUTATSUKI 2015-10-16 18:07:34 UTC
In X server 1.14.7, X server has listened on tcp 6000 port by default. But after update to 1.17.2, X server has no longer lisened on tcp port. Then, if user starts his/her own .xinit scripts with setting DISPLAY as hostname:n style, cliants in script cannot connect to X server, so exit X session soon.

I think this change of behavior is not a bug, but I think it is better to mention it in ports UPDATING file.
Comment 1 bob 2015-10-19 15:39:31 UTC
I believe that I am experiencing this problem with xorg-server-1.17.2 as well. Can someone please provide details of how to work around it?
Comment 2 Yasuhito FUTATSUKI 2015-10-20 06:56:36 UTC
(In reply to bob from comment #1)
There are two way of working arround it.

(1) For clients, specifying display with a form of ":n".
If you set DISPLAY environment in your X session starting script with
"hostname:n" style, where hostname is your local hostname or "localhost",
remove hostname. Then the clients will be able to connect  X server via
UNIX domain socket. This solution cannot be applied if you want to connect
from other host than the host X server runs without proxy such as ssh
forwarding.

(2) For X server, pass "-listen tcp option" to X server.
If you are using startx(1) or xinit(1) for starting X server, add its
command line argument "-listen tcp" after "--", or use xserverrc script
to start X server to pass the arguments. (Please see startx(1) or
xinit(1) man page for detail)
If you are using other way to starting X (for example xdm or gdm for
grafical login session), check your script (or program) to pass the argument.
Comment 3 bob 2015-10-21 13:49:05 UTC
Thanks! Adding the '-- listen tcp' option to my startx command resolved this for me. 

I do agree that something should be added to UPDATING about this. It is clearly a violation of POLA for those of us that are affected.
Comment 4 Jason Unovitch freebsd_committer freebsd_triage 2016-08-06 01:39:03 UTC
Is this worth staying open at this point?  xorg 1.17 not listening on a TCP port is old news at this point and I don't know how relevant an UPDATING entry would be a year later given how few folks probably use the feature.
Comment 5 Yasuhito FUTATSUKI 2016-08-28 10:05:37 UTC
(In reply to Jason Unovitch from comment #4)
I'm sorry too late to respond.
I agree this is too late to mention it.