<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel> 

      <title>Comments on: Xwindows on dynamic IP?</title>
      <link>http://ask.metafilter.com/54363/Xwindows-on-dynamic-IP/</link>
      <description>Comments on Ask MetaFilter post Xwindows on dynamic IP?</description>
	  	  <pubDate>Thu, 04 Jan 2007 10:11:10 -0800</pubDate>
      <lastBuildDate>Thu, 04 Jan 2007 10:11:10 -0800</lastBuildDate>
      <language>en-us</language>
	  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
	  <ttl>60</ttl>

<item>
  	<title>Question: Xwindows on dynamic IP?</title>
  	<link>http://ask.metafilter.com/54363/Xwindows-on-dynamic-IP</link>	
  	<description>X Windows filter: I have a Windows XP desktop with a static IP address. I connect to a unix machine and run certain programs that have graphical user interfaces, which in turn appear on my desktop monitor. I want to do the same with my laptop on a dynamic IP address, obtained automatically. HELP! To be able to do this task on my desktop machine, I start an X Windows emulator, XWin32 in this case. Then login to the unix machine using a secure shell client. Finally, in  the secure shell client, I issue the following command:&lt;br&gt;
&lt;br&gt;
setenv DISPLAY ###.###.###.###:0.0&lt;br&gt;
&lt;br&gt;
(###.###.###.### is my static IP address)&lt;br&gt;
&lt;br&gt;
How can I accomplish this on my laptop, which obtains a dynamic IP address (presumably a different one) everytime I start a new internet connection? &lt;br&gt;
&lt;br&gt;
I don&apos;t know a whole a lot about networking. But, if there is a way of figuring out the IP address for a particular connection session, then my problem is solved? If so, how can I find that IP address?</description>
  	<guid isPermaLink="false">post:ask.metafilter.com,2008:site.54363</guid>
  	<pubDate>Thu, 04 Jan 2007 10:00:32 -0800</pubDate>
  	<dc:creator>eebs</dc:creator>
	
	<category>xwindows</category>
	
</item>
<item>
  	<title>By: Nodecam</title>
  	<link>http://ask.metafilter.com/54363/Xwindows-on-dynamic-IP#818503</link>	
  	<description>Maybe I&apos;m missing something, but why wouldn&apos;t you want to tunnel your X session over SSH as well.&lt;br&gt;
&lt;br&gt;
When you use ssh, append -Y to your commandline, and it should work without the setenv DISPLAY line.&lt;br&gt;
&lt;br&gt;
ie. &lt;br&gt;
ssh -Y username@unixserver.com&lt;br&gt;
&lt;br&gt;
Note that the server admin has to allow X forwarding (X11Forwarding yes in the sshd_config file)  If they&apos;re ok with you forwarding X sessions in the clear, I&apos;m sure they&apos;d be willing to enable that for you.</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.54363-818503</guid>
  	<pubDate>Thu, 04 Jan 2007 10:11:10 -0800</pubDate>
  	<dc:creator>Nodecam</dc:creator>
</item>
<item>
  	<title>By: neustile</title>
  	<link>http://ask.metafilter.com/54363/Xwindows-on-dynamic-IP#818557</link>	
  	<description>Yes, if you&apos;re using SSH there is no reason to ever set the DISPLAY variable. If ssh -Y host doesn&apos;t work, try ssh -X. Other things to try: initiate the ssh from an xterm spawned off of XWin32, not a separate non-X11 SSH client in Windows. Also make sure there is no DISPLAY variable being set on login on the remote machine (from a startup or login script.)</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.54363-818557</guid>
  	<pubDate>Thu, 04 Jan 2007 10:39:41 -0800</pubDate>
  	<dc:creator>neustile</dc:creator>
</item>
<item>
  	<title>By: pharm</title>
  	<link>http://ask.metafilter.com/54363/Xwindows-on-dynamic-IP#818584</link>	
  	<description>Note that in general setting DISPLAY in the way that you are doing means that all X windows traffic goes over the network in the clear. That includes everything you type at the keyboard.&lt;br&gt;
&lt;br&gt;
As others have said, use ssh to tunnel the X connection over the securely encrypted ssh connection. In my experience, it&apos;s also worth compressing the ssh connection as it makes a significant difference.</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.54363-818584</guid>
  	<pubDate>Thu, 04 Jan 2007 10:56:04 -0800</pubDate>
  	<dc:creator>pharm</dc:creator>
</item>
<item>
  	<title>By: lalas</title>
  	<link>http://ask.metafilter.com/54363/Xwindows-on-dynamic-IP#818773</link>	
  	<description>If the laptop is also a Windows machine, you might try using PuTTY.  It supports X11 forwarding (in Connection -&amp;gt; SSH -&amp;gt; X11), and once configured properly, should work for both your laptop and desktop machines.</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.54363-818773</guid>
  	<pubDate>Thu, 04 Jan 2007 12:55:24 -0800</pubDate>
  	<dc:creator>lalas</dc:creator>
</item>
<item>
  	<title>By: flabdablet</title>
  	<link>http://ask.metafilter.com/54363/Xwindows-on-dynamic-IP#819175</link>	
  	<description>The advice above is sound, and you should follow it.  But for future reference in case you have the same need for some other reason: you can use a free dynamic DNS provider (like &lt;a href=&quot;http://www.dyndns.com/services/dns/dyndns/&quot;&gt;dyndns.com&lt;/a&gt; or &lt;a href=&quot;http://www.no-ip.com/services/managed_dns/free_dynamic_dns.html&quot;&gt;no-ip.com&lt;/a&gt;) to get a fixed DNS address that will map to your dynamically assigned IP address.  Any decent broadband router will have an option to auto-update such a service on connection, or you can install a small client on your PC to do the same thing for dialup connections.</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.54363-819175</guid>
  	<pubDate>Thu, 04 Jan 2007 18:18:23 -0800</pubDate>
  	<dc:creator>flabdablet</dc:creator>
</item>
<item>
  	<title>By: flabdablet</title>
  	<link>http://ask.metafilter.com/54363/Xwindows-on-dynamic-IP#819185</link>	
  	<description>And to answer your original question: if your laptop&apos;s running XP, open a cmd window (Start-&amp;gt;Run, type &lt;b&gt;&lt;code&gt;cmd&lt;/code&gt;&lt;/b&gt; into the Run: box and hit Enter) and enter the following command:&lt;br&gt;
&lt;b&gt;&lt;code&gt;&lt;br&gt;
ipconfig /all&lt;br&gt;
&lt;/code&gt;&lt;/b&gt;&lt;br&gt;
This will show you, among many other things, the current IP address your dialup connection is using.&lt;br&gt;
&lt;br&gt;
For Windows 98: Start-&amp;gt;Run, type &lt;b&gt;&lt;code&gt;winipcfg&lt;/code&gt;&lt;/b&gt; into the Run: box, and when the winipcfg window appears, click More Info.&lt;br&gt;
&lt;br&gt;
If the IP address shown for a particular connection is in one of the non-routable ranges (typically 192.168.x.x or 10.x.x.x) then that connection is most likely shielded from the Internet by a &lt;a href=&quot;http://en.wikipedia.org/wiki/Network_address_translation&quot;&gt;NAT&lt;/a&gt; router, and you&apos;ll have to do a bit of fooling about with that to make it possible for your PC to accept incoming connections from outside.</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.54363-819185</guid>
  	<pubDate>Thu, 04 Jan 2007 18:28:07 -0800</pubDate>
  	<dc:creator>flabdablet</dc:creator>
</item>
<item>
  	<title>By: eebs</title>
  	<link>http://ask.metafilter.com/54363/Xwindows-on-dynamic-IP#821326</link>	
  	<description>Late follow up (due to technical problems) :&lt;br&gt;
&lt;br&gt;
Thanks for all the good info. After I read all of your comments, I went back to the software and looked for words &amp;quot;X11&amp;quot; and &amp;quot;tunneling&amp;quot; (I told you I wasn&apos;t network savvy, hence the unfamiliarity with the terminology) and sure enough there was a check box with the text &amp;quot;X11 Tunneling&amp;quot;. I checked the box and voil&#xe0;, my problem solved; no more &amp;quot;setenv&amp;quot; stuff. &lt;br&gt;
&lt;br&gt;
Thanks.</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.54363-821326</guid>
  	<pubDate>Sun, 07 Jan 2007 11:17:57 -0800</pubDate>
  	<dc:creator>eebs</dc:creator>
</item>

    </channel>
</rss>
