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 ?
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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.