Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I installed Redhat7.3 with htppd and mysql and postgresql, on one of machine in my office LAN. if i am trying to access 196.198.0.1/test/test.htm it is working well on the same machine, i means where i installed the Redhat. but when i am trying to access the same URL in diffrent windows machine i am getting the message :
localhost.localdomain could not be found please check the name and try again.
I do have the same problem too. I can access test page from the PC where I install Red hat 9.0, but can't from another windows PC on the same LAN. All PCs are connect to linksys router, and forwardind port 80 for the apache webserver PC. Please help. Thanks.
For NT it will be at C:\WINNT\system32\drivers\etc\hosts
For XP C:\WINDOWS\SYSTEM32\DRIVERS\ETC\HOSTS
For windows 98, it is in C:\WINDOWS\HOSTS
The localhost entry should look like:
127.0.0.1 localhost
You can add an alias at the end:
127.0.0.1 localhost localhost.localdomain
Your entry may have an alias added that is the name of your linux box.
If your linux box uses a static address you could add an entry for it in the hosts file. If it uses DHCP, then there shouldn't be any reference to the linux hostname in either the hosts or lmhosts file. The LMHOSTS file is in the same directory as the HOSTS file.
One sidenote: This is a technique used to block access to a computer. By having the website name defined as localhost, the computer will use the localhost (itself) address instead of getting the IP address from the DNS server.
Still no success i changed the following in windows 2000 host file.
BTW, my linux box having static IP (10.0.0.151)
# Copyright (c) 1993-1999 Microsoft Corp.
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
# For example:
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host
#127.0.0.1 localhost
#10.0.0.151 localhost localhost.localdomain
127.0.0.1 localhost localhost.localdomain
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.