Samba server can only be accessed locally using smbclient?












0















I've set up a Samba server to share some files with my Windows computer. The server is up and running but somehow the shared folder can only be accessed locally with:




smbclient //localhost/share




If I try to run the command also locally on Linux but use the binded IP address like:




smbclient //xxx.xxx.xx.x/share




It gives an error message:




WARNING: The "syslog" option is deprecated

protocol negotiation failed: NT_STATUS_INVALID_NETWORK_RESPONSE




Here's what I did to set up the server:

in smb.conf:




[global]

.... (default settings)

hosts allow = MY-WINDOWS-PC

bind interfaces only = yes

interfaces = lo eth0



[share]

path = /mnt/my-share-folder/

valid users = my-user

read only = no

browsable = yes

public = no

writable = yes




I've also set up ufw by using:




sudo ufw enable samba




Anyone has any ideas what I might be missing here? Thanks!










share|improve this question



























    0















    I've set up a Samba server to share some files with my Windows computer. The server is up and running but somehow the shared folder can only be accessed locally with:




    smbclient //localhost/share




    If I try to run the command also locally on Linux but use the binded IP address like:




    smbclient //xxx.xxx.xx.x/share




    It gives an error message:




    WARNING: The "syslog" option is deprecated

    protocol negotiation failed: NT_STATUS_INVALID_NETWORK_RESPONSE




    Here's what I did to set up the server:

    in smb.conf:




    [global]

    .... (default settings)

    hosts allow = MY-WINDOWS-PC

    bind interfaces only = yes

    interfaces = lo eth0



    [share]

    path = /mnt/my-share-folder/

    valid users = my-user

    read only = no

    browsable = yes

    public = no

    writable = yes




    I've also set up ufw by using:




    sudo ufw enable samba




    Anyone has any ideas what I might be missing here? Thanks!










    share|improve this question

























      0












      0








      0








      I've set up a Samba server to share some files with my Windows computer. The server is up and running but somehow the shared folder can only be accessed locally with:




      smbclient //localhost/share




      If I try to run the command also locally on Linux but use the binded IP address like:




      smbclient //xxx.xxx.xx.x/share




      It gives an error message:




      WARNING: The "syslog" option is deprecated

      protocol negotiation failed: NT_STATUS_INVALID_NETWORK_RESPONSE




      Here's what I did to set up the server:

      in smb.conf:




      [global]

      .... (default settings)

      hosts allow = MY-WINDOWS-PC

      bind interfaces only = yes

      interfaces = lo eth0



      [share]

      path = /mnt/my-share-folder/

      valid users = my-user

      read only = no

      browsable = yes

      public = no

      writable = yes




      I've also set up ufw by using:




      sudo ufw enable samba




      Anyone has any ideas what I might be missing here? Thanks!










      share|improve this question














      I've set up a Samba server to share some files with my Windows computer. The server is up and running but somehow the shared folder can only be accessed locally with:




      smbclient //localhost/share




      If I try to run the command also locally on Linux but use the binded IP address like:




      smbclient //xxx.xxx.xx.x/share




      It gives an error message:




      WARNING: The "syslog" option is deprecated

      protocol negotiation failed: NT_STATUS_INVALID_NETWORK_RESPONSE




      Here's what I did to set up the server:

      in smb.conf:




      [global]

      .... (default settings)

      hosts allow = MY-WINDOWS-PC

      bind interfaces only = yes

      interfaces = lo eth0



      [share]

      path = /mnt/my-share-folder/

      valid users = my-user

      read only = no

      browsable = yes

      public = no

      writable = yes




      I've also set up ufw by using:




      sudo ufw enable samba




      Anyone has any ideas what I might be missing here? Thanks!







      networking server samba






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 7 hours ago









      peidaqipeidaqi

      1012




      1012






















          2 Answers
          2






          active

          oldest

          votes


















          0














          https://websiteforstudents.com/create-private-samba-share-ubuntu-17-04-17-10/



          I just followed this tutorial way back when i was making my samba share, tho make sure that your windows pc and host are on the same subnet (on win command prompt or power shell type in ipconfig and find Default gateway, make sure its the same one on your ubuntu host buy using ifconfig in terminal)



          IF THEY ARE NOT ON SAME SUBNET:
          Try to connect theme if that is not possible try port forwarding on ruter of the host machine 139 TCP and 455 TCP on the servers ip and than try again connecting but now using the routers wan adress on your pc.
          I had the same issue, i forgot that i have another DHCP server running on a router behind the tv... Hope it helped






          share|improve this answer








          New contributor




          Pequla is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.




























            0














            This seems to be a problem with interface binding. By removing those lines, the server worked with smbclient.






            share|improve this answer

























              Your Answer








              StackExchange.ready(function() {
              var channelOptions = {
              tags: "".split(" "),
              id: "89"
              };
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function() {
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled) {
              StackExchange.using("snippets", function() {
              createEditor();
              });
              }
              else {
              createEditor();
              }
              });

              function createEditor() {
              StackExchange.prepareEditor({
              heartbeatType: 'answer',
              autoActivateHeartbeat: false,
              convertImagesToLinks: true,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: 10,
              bindNavPrevention: true,
              postfix: "",
              imageUploader: {
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              },
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              });


              }
              });














              draft saved

              draft discarded


















              StackExchange.ready(
              function () {
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1118298%2fsamba-server-can-only-be-accessed-locally-using-smbclient%23new-answer', 'question_page');
              }
              );

              Post as a guest















              Required, but never shown

























              2 Answers
              2






              active

              oldest

              votes








              2 Answers
              2






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              0














              https://websiteforstudents.com/create-private-samba-share-ubuntu-17-04-17-10/



              I just followed this tutorial way back when i was making my samba share, tho make sure that your windows pc and host are on the same subnet (on win command prompt or power shell type in ipconfig and find Default gateway, make sure its the same one on your ubuntu host buy using ifconfig in terminal)



              IF THEY ARE NOT ON SAME SUBNET:
              Try to connect theme if that is not possible try port forwarding on ruter of the host machine 139 TCP and 455 TCP on the servers ip and than try again connecting but now using the routers wan adress on your pc.
              I had the same issue, i forgot that i have another DHCP server running on a router behind the tv... Hope it helped






              share|improve this answer








              New contributor




              Pequla is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
              Check out our Code of Conduct.

























                0














                https://websiteforstudents.com/create-private-samba-share-ubuntu-17-04-17-10/



                I just followed this tutorial way back when i was making my samba share, tho make sure that your windows pc and host are on the same subnet (on win command prompt or power shell type in ipconfig and find Default gateway, make sure its the same one on your ubuntu host buy using ifconfig in terminal)



                IF THEY ARE NOT ON SAME SUBNET:
                Try to connect theme if that is not possible try port forwarding on ruter of the host machine 139 TCP and 455 TCP on the servers ip and than try again connecting but now using the routers wan adress on your pc.
                I had the same issue, i forgot that i have another DHCP server running on a router behind the tv... Hope it helped






                share|improve this answer








                New contributor




                Pequla is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.























                  0












                  0








                  0







                  https://websiteforstudents.com/create-private-samba-share-ubuntu-17-04-17-10/



                  I just followed this tutorial way back when i was making my samba share, tho make sure that your windows pc and host are on the same subnet (on win command prompt or power shell type in ipconfig and find Default gateway, make sure its the same one on your ubuntu host buy using ifconfig in terminal)



                  IF THEY ARE NOT ON SAME SUBNET:
                  Try to connect theme if that is not possible try port forwarding on ruter of the host machine 139 TCP and 455 TCP on the servers ip and than try again connecting but now using the routers wan adress on your pc.
                  I had the same issue, i forgot that i have another DHCP server running on a router behind the tv... Hope it helped






                  share|improve this answer








                  New contributor




                  Pequla is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.










                  https://websiteforstudents.com/create-private-samba-share-ubuntu-17-04-17-10/



                  I just followed this tutorial way back when i was making my samba share, tho make sure that your windows pc and host are on the same subnet (on win command prompt or power shell type in ipconfig and find Default gateway, make sure its the same one on your ubuntu host buy using ifconfig in terminal)



                  IF THEY ARE NOT ON SAME SUBNET:
                  Try to connect theme if that is not possible try port forwarding on ruter of the host machine 139 TCP and 455 TCP on the servers ip and than try again connecting but now using the routers wan adress on your pc.
                  I had the same issue, i forgot that i have another DHCP server running on a router behind the tv... Hope it helped







                  share|improve this answer








                  New contributor




                  Pequla is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.









                  share|improve this answer



                  share|improve this answer






                  New contributor




                  Pequla is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.









                  answered 7 hours ago









                  PequlaPequla

                  11




                  11




                  New contributor




                  Pequla is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.





                  New contributor





                  Pequla is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.






                  Pequla is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.

























                      0














                      This seems to be a problem with interface binding. By removing those lines, the server worked with smbclient.






                      share|improve this answer






























                        0














                        This seems to be a problem with interface binding. By removing those lines, the server worked with smbclient.






                        share|improve this answer




























                          0












                          0








                          0







                          This seems to be a problem with interface binding. By removing those lines, the server worked with smbclient.






                          share|improve this answer















                          This seems to be a problem with interface binding. By removing those lines, the server worked with smbclient.







                          share|improve this answer














                          share|improve this answer



                          share|improve this answer








                          edited 7 hours ago

























                          answered 7 hours ago









                          peidaqipeidaqi

                          1012




                          1012






























                              draft saved

                              draft discarded




















































                              Thanks for contributing an answer to Ask Ubuntu!


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid



                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.


                              To learn more, see our tips on writing great answers.




                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function () {
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1118298%2fsamba-server-can-only-be-accessed-locally-using-smbclient%23new-answer', 'question_page');
                              }
                              );

                              Post as a guest















                              Required, but never shown





















































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown

































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown







                              Popular posts from this blog

                              How did Captain America manage to do this?

                              迪纳利

                              南乌拉尔铁路局