On Wed, Jun 07, 2006 at 10:42:41PM -0700, akonsu wrote:
> hello,
>
> my openbsd machine is conected to a windows machine. the windows machine has
> a wireless connection and gets its ip using dhcp. the openbsd machine gets
> its ip from the windows machine also by using dhcp on boot.
>
> the windows machine runs cygwin X server and the openbsd machine uses its
> display when running various x applications.
>
> so i need to set up DISPLAY variable on openbsd to point to this screen.
>
> is there a way to automatically retrieve the ip address of the windows
> machine and set up DISPLAY variable in the login script on openbsd machine?
> also, how to handle ip renewals?
I'm afraid neither is possible. However, I'm not sure about the proposed
architecture, but if the Windows machine has at least one interface with
a fixed IP address, that might be helpful.
For a very dirty solution, abuse nmap, and include some actual
authentication - whatever you're tunneling X over should do. (Oh, you
are aware that running X over an unencrypted link is a VERY bad idea,
right? Not saying you're doing so, but if you are...)
Some alternatives exist; I'm not sure if a service like DynDNS.org
accepts internal IP addresses (192.168.0.0/16 and the equivalent B and A
classes), but that would solve some part of what you're trying to do.
There are various, mostly not very robust, ways to do something similar
on one's own.
Joachim