{"id":2899,"date":"2024-12-29T02:28:02","date_gmt":"2024-12-29T00:28:02","guid":{"rendered":"https:\/\/itsimple.info\/?p=2899"},"modified":"2024-12-29T02:28:45","modified_gmt":"2024-12-29T00:28:45","slug":"can-not-access-windows-network-folder-share-with-netbios-with-ip-you-can-access-the-shares","status":"publish","type":"post","link":"https:\/\/itsimple.info\/?p=2899","title":{"rendered":"Can not Access Windows Network Folder Share With Netbios. With IP you can access the shares"},"content":{"rendered":"\n<p>I had a strange case on windows server allowing access to the shared folder on the server with IP only, when trying to access with netbios name or FQDN of the server. no response pop, no credential pop-up. some times I got &#8220;you do not have permission to access the folder &#8230;&#8221; .<\/p>\n\n\n\n<p>Eventual it came down to the Windows Firewall settings, here is what needed :<\/p>\n\n\n\n<p>Windows Firewall doesn\u2019t directly control name resolution (such as NetBIOS or DNS translation), but it does include rules that are critical for enabling protocols used in name resolution and file sharing. If name resolution fails, it might be due to one of these rules being disabled or blocked.<\/p>\n\n\n\n<p>Here\u2019s an overview of relevant rules:<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>1. Rules Related to Name Resolution<\/strong><\/h3>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>NetBIOS Name Resolution<\/strong><\/h4>\n\n\n\n<p>NetBIOS over TCP\/IP is used for resolving NetBIOS names to IP addresses. The relevant rules are:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>File and Printer Sharing (NB-Name-In)<\/strong>: UDP 137 (NetBIOS Name Service).<\/li>\n\n\n\n<li><strong>File and Printer Sharing (NB-Datagram-In)<\/strong>: UDP 138 (NetBIOS Datagram Service).<\/li>\n\n\n\n<li><strong>File and Printer Sharing (NB-Session-In)<\/strong>: TCP 139 (NetBIOS Session Service).<\/li>\n<\/ul>\n\n\n\n<p>These are crucial if you&#8217;re relying on NetBIOS name resolution.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>DNS Name Resolution<\/strong><\/h4>\n\n\n\n<p>If you&#8217;re using DNS, ensure the following rules are enabled:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>DNS Client<\/strong>: Allows outbound DNS requests (UDP 53).<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>2. Rules Related to SMB File Sharing<\/strong><\/h3>\n\n\n\n<p>Even if name resolution works, SMB file sharing requires additional rules:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>File and Printer Sharing (SMB-In)<\/strong>: TCP 445 (SMB protocol for file sharing).<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>3. Verifying and Enabling Rules<\/strong><\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Open <strong>Windows Defender Firewall with Advanced Security<\/strong>:\n<ul class=\"wp-block-list\">\n<li>Press <code>Win + R<\/code>, type <code>wf.msc<\/code>, and press Enter.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>In the left pane, click <strong>Inbound Rules<\/strong>.<\/li>\n\n\n\n<li>Look for the following rules:\n<ul class=\"wp-block-list\">\n<li><strong>File and Printer Sharing (NB-Name-In)<\/strong> ? UDP 137.<\/li>\n\n\n\n<li><strong>File and Printer Sharing (NB-Datagram-In)<\/strong> ? UDP 138.<\/li>\n\n\n\n<li><strong>File and Printer Sharing (NB-Session-In)<\/strong> ? TCP 139.<\/li>\n\n\n\n<li><strong>File and Printer Sharing (SMB-In)<\/strong> ? TCP 445.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Ensure these rules are <strong>Enabled<\/strong> (green checkmark).<\/li>\n<\/ol>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>4. Testing Name Resolution<\/strong><\/h3>\n\n\n\n<p>After verifying these rules:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Flush the DNS and NetBIOS cache on the client:<\/li>\n<\/ol>\n\n\n\n<p>ipconfig \/flushdns<br>nbtstat -R<\/p>\n\n\n\n<p>   2. Test name resolution using:<\/p>\n\n\n\n<p>ping ServerName<\/p>\n\n\n\n<p>If it resolves correctly, proceed to test access to the share:<\/p>\n\n\n\n<p>net use \\\\ServerName<\/p>\n\n\n\n<p>If you still have problem, You need to make sure that the ruled should be enabled on all profiles :<\/p>\n\n\n\n<p>Private , Public, Domain<\/p>\n\n\n\n<figure class=\"wp-block-pullquote has-vivid-green-cyan-color has-text-color has-link-color has-large-font-size wp-elements-913a8d28a4fab8f1d7b7023910a23e04\"><blockquote><p>Good Luck<\/p><\/blockquote><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>I had a strange case on windows server allowing access to the shared folder on the server with IP only, when trying to access with netbios name or FQDN of the server. no response pop, no credential pop-up. some times I got &#8220;you do not have permission to access the folder &#8230;&#8221; . Eventual it [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17,20,7,8,9,6,12,18,14,15],"tags":[],"class_list":["post-2899","post","type-post","status-publish","format-standard","hentry","category-games","category-hyper-v","category-microsoft-exchange-2010","category-microsoft-exchange-2013","category-microsoft-exchange-2016","category-software","category-tutorials","category-virtualization","category-windows","category-windows-server"],"_links":{"self":[{"href":"https:\/\/itsimple.info\/index.php?rest_route=\/wp\/v2\/posts\/2899","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itsimple.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itsimple.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itsimple.info\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/itsimple.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2899"}],"version-history":[{"count":1,"href":"https:\/\/itsimple.info\/index.php?rest_route=\/wp\/v2\/posts\/2899\/revisions"}],"predecessor-version":[{"id":2900,"href":"https:\/\/itsimple.info\/index.php?rest_route=\/wp\/v2\/posts\/2899\/revisions\/2900"}],"wp:attachment":[{"href":"https:\/\/itsimple.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2899"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itsimple.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2899"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itsimple.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2899"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}