• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Problems switching networks while X11 is running
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problems switching networks while X11 is running


  • Subject: Re: Problems switching networks while X11 is running
  • From: Ettore Aldrovandi <email@hidden>
  • Date: Tue, 4 Feb 2003 14:45:41 -0500 (EST)

On Tue, 04 Feb 2003 12:49:57 -0600
Michael Conwell <email@hidden> wrote:

>Andreas Yankopolus wrote:
>>
>> I've been running into trouble when switching networks while X11 is
>> running. If the hostname changes (e.g., switching from a static
>> IP/hostname to a DHCP IP/hostname) attempting to open a new window
>> results in the following message:
>>
>> xterm Xt error: Can't open display:
>>
>> Thanks,
>>
>> Andreas

>I think this is in the FAQ, under the known issues heading:
>
>Cannot connect to X Server after a network config change - currently
>requires restart of X server.
>

Yes, it's in the archives. The reason is the .Xauthority
entries that X11 writes, which can checked with

	xauth list

After a network change, the new hostname (obtained by whatever means) will
not match the entries in the .Xauthority file, which leads to the refused
connection.

One solution posted in the archives was to use

	defaults write com.apple.x11 no_auth true

I understand this will prevent X from listening to tcp connections --
indeed, they don't show up on a netstat -na listing. As long as X
connections are handled through ssh forwarding it should be fine, I think.
Otherwise, use

	defaults write com.apple.x11 nolisten_tcp false

--
Ettore Aldrovandi
Department of Mathematics	   - email@hidden
Florida State University	   - http://www.math.fsu.edu/~ealdrov
Tallahassee, FL 32306-4510, USA	   - +1 (850) 664-9717 (FAX: 4053)
_______________________________________________
x11-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/x11-users
X11 for Mac OS X FAQ: http://developer.apple.com/qa/qa2001/qa1232.html
Report issues, request features, feedback: http://developer.apple.com/bugreporter
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: RE: X11 Terminal at Startup
  • Next by Date: Panel-only startup tip
  • Previous by thread: Re: Window refresh
  • Next by thread: Apps with no borders. . .
  • Index(es):
    • Date
    • Thread