Results 1 to 8 of 8

Thread: Samba Network Device Type for Windows 10

  1. #1

    Default Samba Network Device Type for Windows 10

    My Samba share is working for all my devices tested with Linux, Apple, Android and Windows 10.

    However on my Windows I have to access it through its IP address whereas Linux finds it just fine. If I'm reading things correctly that's just Samba needing to catch up with the newest smb protocol and I'm fine with just using the IP address. Or it could be because haven't setup a local DNS server yet so right now I'm just using the hosts file... it's good enough for my purposes for now.

    However, Windows 10 categorizes network devices into sections like Computers, Media devices, Multimedia devices and so on. Is there a setting in Samba to tell Windows what type of device it is? In my case I'm just serving up video and it would be nice to set the type to Media device or Multimedia device.

  2. #2
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    22,086
    Blog Entries
    1

    Default Re: Samba Network Device Type for Windows 10

    Quote Originally Posted by Reg_gie View Post
    My Samba share is working for all my devices tested with Linux, Apple, Android and Windows 10.

    However on my Windows I have to access it through its IP address whereas Linux finds it just fine. If I'm reading things correctly that's just Samba needing to catch up with the newest smb protocol and I'm fine with just using the IP address. Or it could be because haven't setup a local DNS server yet so right now I'm just using the hosts file... it's good enough for my purposes for now.

    However, Windows 10 categorizes network devices into sections like Computers, Media devices, Multimedia devices and so on. Is there a setting in Samba to tell Windows what type of device it is? In my case I'm just serving up video and it would be nice to set the type to Media device or Multimedia device.
    You can use WS-Discovery to advertise samba shares. Install wsdd....
    https://software.opensuse.org/search...ect=ALL&q=wsdd

    Also explained here
    https://github.com/christgau/wsdd

    Once installed, do
    Code:
    systemctl enable wsdd
    Code:
    systemctl start wsdd
    The Windows 10 host should then be able to discover the share(s).
    Last edited by deano_ferrari; 01-May-2020 at 00:37.
    openSUSE Leap 15.2; KDE Plasma 5

  3. #3
    Join Date
    Sep 2012
    Posts
    5,914

    Default Re: Samba Network Device Type for Windows 10

    Quote Originally Posted by Reg_gie View Post
    Is there a setting in Samba to tell Windows what type of device it is?
    To my best knowledge Windows 10 is using WS-Discovery protocol for network browsing and it is not supported by SAMBA. There is five years old SAMBA bug with proposed patch without any progress indication: https://bugzilla.samba.org/show_bug.cgi?id=11473

    There is also standalone implementation of WSD daemon: https://github.com/christgau/wsdd/bl...er/src/wsdd.py From readme and quick source browsing it is using hardcoded host type Computer, but it could be a start. If it works for you, you can discuss with author option to announce different device type.

    May be there are other implementations as well.

  4. #4
    Join Date
    Sep 2012
    Posts
    5,914

    Default Re: Samba Network Device Type for Windows 10

    Quote Originally Posted by deano_ferrari View Post
    You can use WS-Discovery to advertise samba shares. Install wsdd
    Does it actually advertise shares? For all I can tell it advertises host and clients then enumerate shares on host using normal SMB protocol. I may be wrong, but I do not see where wsdd enumerates SAMBA shares on local host.

  5. #5
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    22,086
    Blog Entries
    1

    Default Re: Samba Network Device Type for Windows 10

    Quote Originally Posted by arvidjaar View Post
    Does it actually advertise shares? For all I can tell it advertises host and clients then enumerate shares on host using normal SMB protocol. I may be wrong, but I do not see where wsdd enumerates SAMBA shares on local host.
    Yes, technically it is the samba host, but that is sufficient for the Windows file explorer to enumerate the host (in a similar way that NetBIOS was previously used previously), and access the shares from there (with the requisite credentials of course).
    openSUSE Leap 15.2; KDE Plasma 5

  6. #6

    Default Re: Samba Network Device Type for Windows 10

    Quote Originally Posted by deano_ferrari View Post
    You can use WS-Discovery...
    Awesome and thanks.

  7. #7

    Default Re: Samba Network Device Type for Windows 10

    This is a bonus about being able to setup wsdd for Windows 10 discovery and thanks for that information but my original question was actually about being able to specify the device type to Windows such as multimedia device, computer, media device etc.

    I presume that's a configuration feature of WS-Discovery?

  8. #8
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    22,086
    Blog Entries
    1

    Default Re: Samba Network Device Type for Windows 10

    Quote Originally Posted by Reg_gie View Post
    This is a bonus about being able to setup wsdd for Windows 10 discovery and thanks for that information but my original question was actually about being able to specify the device type to Windows such as multimedia device, computer, media device etc.

    I presume that's a configuration feature of WS-Discovery?
    No, it's intended to allow other hosts to discover the samba host.

    I know Windows can discover DLNA media devices....perhaps worth investigating setting up a media server (MiniDLNA) or similar....

    https://www.dignited.com/24731/a-com...dlna-and-upnp/
    openSUSE Leap 15.2; KDE Plasma 5

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •