Log in

View Full Version : Pocket Hosts for PC


Imageman
07-06-2003, 05:46 AM
Anyone know of a 'pocket hosts' style program for a pc I can use on my laptop?

Janak Parekh
07-06-2003, 06:25 AM
You don't really need it, per se. Just edit the HOSTS file directly on your PC. Its location depends on which OS you're using:

- Win95/98/Me: in C:\WINDOWS.
- WinNT/2k: in C:\WINNT\SYSTEM32\DRIVERS\ETC.
- WinXP: in C:\WINDOWS\SYSTEM32\DRIVERS\ETC.

Note: In each of those folders, you may have to copy HOSTS.SAM to HOSTS and then add entries to it.

--janak

Imageman
07-06-2003, 06:27 AM
yea, I know how to do that, but I was hoping for an easy way to toggle between two host files or something.

at work/ at home.

any thoughts on that?

Jorgen
07-06-2003, 06:50 AM
>easy way to toggle between two host files

Make two hosts files: hosth (with home entries) and hostw (you guessed it) plus two batchfiles (or DOSKEY entries):

hosth.bat which copies hosth to host
and hostw.bat: which copies hostw to host

But do you need it? I would have thought you could have entries for both home and work in one host-file.

Jorgen

Imageman
07-06-2003, 07:00 AM
yea, I could do that. Forgot about batch files long ago. :)

yea, I have to apply two different IPs for the same domain dependent on whether i am at work or home.