dynamically load hosts file based on wireless connection

  • Thread starter Thread starter Patrick T
  • Start date Start date
P

Patrick T

Hi,

I currently use my laptop to connect to webservers at my office from
home and from the office. I'd like the ability to dynamicly load my
windows hosts file based on my wireless connection. For example, if I
am at the office, load hostsA. If I am at home, load hostsB. Is there
anyway to do this based on the wireless connection? Any ideas? Let me
know.

Thanks,

-Pat-
 
Hi,

I currently use my laptop to connect to webservers at my office from
home and from the office. I'd like the ability to dynamicly load my
windows hosts file based on my wireless connection. For example, if I
am at the office, load hostsA. If I am at home, load hostsB. Is there
anyway to do this based on the wireless connection? Any ideas? Let me
know.


Do u mean automatically changing your browser's default page?

Having 2 desktop shortcuts not acceptable?
 
No - instead i want to actually change or load the appropriate hosts
file so that domain names staticly maps to an IP address differently
based on where i physicly am located.
 
No - instead i want to actually change or load the appropriate hosts
file so that domain names staticly maps to an IP address differently
based on where i physicly am located.


do u have a server at home? run a script like this in your startup
folder:


if exists \\server\c$\file goto home
:work
copy workhosts lmhosts
goto end
:home
copy homehosts lmhosts
:end
 
Back
Top