From owner-freebsd-questions@FreeBSD.ORG Tue Jun 26 03:44:19 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4248F106564A for ; Tue, 26 Jun 2012 03:44:19 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) by mx1.freebsd.org (Postfix) with ESMTP id EB2F38FC12 for ; Tue, 26 Jun 2012 03:44:18 +0000 (UTC) Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SjMhB-0002Wc-E5 for freebsd-questions@freebsd.org; Tue, 26 Jun 2012 05:44:05 +0200 Received: from cpc3-walt15-2-0-cust148.13-2.cable.virginmedia.com ([86.21.186.149]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 26 Jun 2012 05:44:05 +0200 Received: from walterhurry by cpc3-walt15-2-0-cust148.13-2.cable.virginmedia.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 26 Jun 2012 05:44:05 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: Walter Hurry Date: Tue, 26 Jun 2012 03:43:53 +0000 (UTC) Lines: 57 Message-ID: References: <20120625192257.GA1464@tiny.Sisis.de> <20120625195836.GA1678@tiny.Sisis.de> <20120625200549.GA1733@tiny.Sisis.de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: cpc3-walt15-2-0-cust148.13-2.cable.virginmedia.com User-Agent: Pan/0.135 (Tomorrow I'll Wake Up and Scald Myself with Tea; GIT 30dc37b master) Subject: SOLVED: Xorg listening on the WAN? (was Xorg listening on the WAN?) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Jun 2012 03:44:19 -0000 On Mon, 25 Jun 2012 20:33:15 +0000, Walter Hurry wrote: > On Mon, 25 Jun 2012 22:05:50 +0200, Matthias Apitz wrote: > >> El día Monday, June 25, 2012 a las 09:58:37PM +0200, Matthias Apitz >> escribió: >> >>> El día Monday, June 25, 2012 a las 07:51:02PM +0000, Walter Hurry >>> escribió: >>> >>> > On Mon, 25 Jun 2012 21:22:57 +0200, Matthias Apitz wrote: >>> > >>> > > $ man Xorg | col -b | fgrep -- -nolisten >>> > >>> > Thanks for the pointer. >>> > >>> > I'm probably being stupid here, and I should have mentioned that I >>> > had already tried 'man Xorg' and 'man Xsession'. I appreciate that >>> > the answer is probably to put '-nolisten tcp' somewhere, but where? >>> >>> $ cat ~/.xserverrc exec X -nolisten tcp -retro >> >> sorry, it took me some time to remember where the pointer is: >> >> $ man xinit | col -b | fgrep xserverrc >> > Thanks again for your assistance. I didn't have a $HOME/.xserverrc, so I > created one with your contents (permissions 744). > > It doesn't seem to have made any difference at all, though. After > restart, I am still getting the same output from netstat and sockstat. > > So I'm still in the dark. Of course! Looking back at the output from sockstat in my original post, X is running under root, so no amount of tinkering with files in $HOME is going to change anything. So I looked into XDM's configuration files in /usr/local/lib/X11/xdm, and found what change did the trick: $ cat /usr/local/lib/X11/xdm/Xservers # # Xservers file, workstation prototype # # This file should contain an entry to start the server on the # local display; if you have more than one display (not screen), # you can add entries to the list (one per line). If you also # have some X terminals connected which do not support XDMCP, # you can add them here as well. Each X terminal line should # look like: # XTerminalName:0 foreign # :0 local /usr/local/bin/X -nolisten tcp :0 If there's batter way of doing this, please would someone let me know.