Xwindows on dynamic IP?
January 4, 2007 10:00 AM
Subscribe
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:
setenv DISPLAY ###.###.###.###:0.0
(###.###.###.### is my static IP address)
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?
I don'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?
posted by eebs to computers & internet (7 comments total)
When you use ssh, append -Y to your commandline, and it should work without the setenv DISPLAY line.
ie.
ssh -Y username@unixserver.com
Note that the server admin has to allow X forwarding (X11Forwarding yes in the sshd_config file) If they're ok with you forwarding X sessions in the clear, I'm sure they'd be willing to enable that for you.
posted by Nodecam at 10:11 AM on January 4, 2007