> -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of > Chris 'Xenon' Hanson > Sent: Thursday, June 08, 2006 4:28 PM > To: misc > Subject: Re: ip address ? > > Joachim Schipper wrote: > >> 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. > >> > >> 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 wonder if you could misuse traceroute to do this somehow? Traceroute > to a known > "outside" host that you know will have to traverse the Windows gateway, > with a low > max-hops value, and then parse the output of traceroute to see what the > n'th hop was. > > -- > Chris 'Xenon' Hanson | Xenon @ 3D Nature | http://www.3DNature.com/ > "I set the wheels in motion, turn up all the machines, activate the > programs, > and run behind the scenes. I set the clouds in motion, turn up light > and sound, > activate the window, and watch the world go 'round." -Prime Mover, > Rush.
Or a twist I use when connecting locally to machines whose IP address I don't know-- assign a dummy address to the MAC (which never changes) then connect to that address. Not sure how practical a solution that would be for you, but then perhaps connecting to the FQDN of the windows box, as opposed to the IP address, and let DNS figure out what that address is... maybe that would work? Or am I missing something? Dan Farrell Applied Innovations [EMAIL PROTECTED]

