Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Configuring Hosts file (win95 / 98)

Status
Not open for further replies.

indhu88

MIS
Sep 4, 2001
5
IN
Hi friends,
Hosts file in windows folder normally does resolving IP addresses to hosts. Right? Can we resolve IP address with Port address ? For example 10.100.0.102:90 intranet.company.com. Can anybody help me out ?

Thanks in advance.

M.Kashi, India
 
i may be wrong but i dont think so.... LMHOST files are soly used for WINS, and WINS took that over.... sounds to me like what you want to do is port mapping not LMHOST... you'd need a router for that one!
 
If you enter a port number in the hosts file, it will not work. Hosts works with DNS which is actually more at the network layer than the transport layer (where tcp ports reside). You could do a redirect on a router or server to send traffic bound to port 80 on that host to port 90 or something like that. Win 95 and Win 98 don't always come with a hosts file, oftentimes the file is called hosts.sam . To uses hosts, you can edit hosts.sam and then rename it to hosts with no extension. It is often easier to do this from dos that explorer. Once your hosts file is updated, you can call a site by name in IE or netscape and then append :<port #> to the end just as you have done above to view the site by name.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top