Can't access server using hostname from other PCs on the local network
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
It is already in my /etc/hosts file on my Debian server but I don't think that would solve my problem.
The problem is the Windows machine can't resolve the Debian hostname to an IP. Adding something to the Debian /etc/hosts file won't affect the Windows PC will it?
In any case, I swear this was all working before I installed Shorewall so I must have closed off port.
I'll try turning Shorewall off and trying it again.
This is of course an option.
Of course setting an entry in your Debian /etc/hosts doesn't have a effect on the host resolve name of windows.
Also It's maybe an option setup a samba server to act as wins server.
And you could try enable NETBIOS over TCP/IP within Win.
do you have DNS servers configured on ur Windows PC? What are they?
Seems like windows pc can't resolve ur linux box name.
in context of installing firewall i can guess that ur win PC tries to query dns server installed on ur Linux PC and cannot because of firewall, but it is only guess.
Windows can resolve names via three methods - dns, netbios, local hosts files. to answer newbios queries linux box should have samba installed.
anyway, you can add an entry to hosts file, but on your _Windows_ pc. it is located at $windir$\system32\drivers\etc\hosts (where $windir$ - folder where your copy of windows is installed). and this should solve the name resolution trouble.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.