Bonjour not working in Wifi/Ethernet

Discussion in 'Mac OS X Server, Xserve, and Networking' started by el.pescado, Oct 10, 2012.

  1. macrumors newbie

    Joined:
    Oct 10, 2012
    #1
    Hi,

    I have a MacBook Pro with Mountain Lion installed, a Linux PC that serves as file server (using Netatalk), and a D-Link DIR-300 router. When all devices are connected via Ethernet, everything works fine.

    Hoverver, when i connect MacBook using WiFi, is cannot detect any services hosted by Linux box. I can connect by manually entering IP address in "Connect to server" window, though.

    The moment I plug ethernet cable, remote shares instantly show in Finder.

    However connected, both devices are in same network, ping each other etc.

    Can anyone help?
     
  2. macrumors 68030

    jared_kipe

    Joined:
    Dec 8, 2003
    Location:
    Seattle
    #2
    mDNS stuff needs to be delivered at a minimum rate, for 2.4GHz network it is 12Mbps (so Cicso says). Ensure your connection is at least this fast. Also ensure that when on wifi you're not on a different network segment or netmask.
     
  3. macrumors 6502a

    Sayer

    Joined:
    Jan 4, 2002
    Location:
    Austin, TX
    #3
    Bonjour only works between all machines on the same subnet.

    WiFi can be on a different IP subnet range from a wired connection, leaving your WiFi Mac in a different subnet and thus unable to "see" the subnet where Bonjour is.

    Code:
    Maybe Ethernet is: 192.168.1.xxx
    
    Maybe WiFi is:     192.168.2.xxx
    Different subnet means no Bonjour across both WiFi and Ethernet.
     
  4. macrumors 6502

    Joined:
    Oct 7, 2010
    Location:
    Seattle, WA
    #4
    it may not even be that, some routers now are blocking wifi from talking to ethernet for security sake, it's a setting called something like wifi segmentation or something like that :)
     
  5. macrumors 68030

    jared_kipe

    Joined:
    Dec 8, 2003
    Location:
    Seattle
    #5
    OP did say he could communicate directly through IP address, so it would have to be something more like blocking port 5353.
     
  6. macrumors 6502

    Joined:
    Oct 7, 2010
    Location:
    Seattle, WA
    #6
    not necessarily, bonjour is a broadcast protocol, direct IP is not, some firewalls block broadcasting btw wifi and lan.
     
  7. macrumors 68030

    jared_kipe

    Joined:
    Dec 8, 2003
    Location:
    Seattle
    #7
    Ok plausible then. Any particular router/brand that is doing this?
     
  8. macrumors regular

    Joined:
    Jan 12, 2009
    Location:
    London
  9. thread starter macrumors newbie

    Joined:
    Oct 10, 2012
    #9
    Both WiFi and Ethernet are on the same subnet:
    Code:
    en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
    	options=2b<RXCSUM,TXCSUM,VLAN_HWTAGGING,TSO4>
    	ether xx:xx:xx:xx:xx:xx 
    	inet 192.168.0.130 netmask 0xffffff00 broadcast 192.168.0.255
    	media: autoselect (100baseTX <full-duplex,flow-control>)
    	status: active
    en1: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
    	ether xx:xx:xx:xx:xx:xx 
    	inet 192.168.0.102 netmask 0xffffff00 broadcast 192.168.0.255
    	media: autoselect
    	status: active
     
  10. macrumors regular

    Joined:
    Jan 12, 2009
    Location:
    London
    #10
    and as I said, your "router" is probably blocking multicast to/from WiFi

    with no multicast, there is no mDNS, the m in mDNS being multicast...

    with no mDNS there is no Bonjour...
     
  11. el.pescado, Oct 15, 2012
    Last edited: Oct 15, 2012

    thread starter macrumors newbie

    Joined:
    Oct 10, 2012
    #11
    I have checked my router (DLink DIR-300) configuration, and in "Advanced Network" screen there is "Multicast Streams" section, with two options checked: "Enable Multicast Streams" and "Wireless enhance mode". Strange.

    EDIT:
    [​IMG]
     
  12. macrumors regular

    Joined:
    Jan 12, 2009
    Location:
    London
    #12
    you might want to try using Wireshark to see if you can see the mDNS packets
     
  13. macrumors newbie

    Joined:
    Aug 22, 2008
    #13
    Hi,

    I'm sorry for bumping this old(ish) thread, but I'm having the exact same problem with my MacBook Pro running Mountain Lion, only with the wired connection, not the wireless: when connected through WiFi all network devices show immediately in Finder, when connected through Ethernet cable, nothing is shown.
    All devices are on the same subnetwork (192.168.1.x) and I've ruled out router configuration as the problem as a PPC Mac Mini running Leopard connected to the exact same Ethernet port in the router works as expected.

    Were you able to solve your problem?
    Any other suggestions?
    Ethernet device configuration?

    Thank you for any help you can provide
     
  14. macrumors newbie

    Joined:
    Oct 20, 2005
    #14
    Renew DHCP Lease

    I had this problem and the fix was this:

    Network > Airport > Advanced > TCP/IP, and then click "Renew DHCP Lease" button.

    It was clear my issue had only to do with my wi-fi connection, because when I plugged an ethernet cable to the router, bonjour worked.
     
  15. macrumors newbie

    Joined:
    Jun 11, 2013
    #15
    Bonjour cannot be routed

    I am having the same problem and found more information here.

    I wished that sort of info was provided by Apple at least. So far I don't have a solution though. Cisco's article suggests a dedicater router is required :eek:

    Really sucks.
     
  16. dcyb, Jun 11, 2013
    Last edited: Jun 11, 2013

    macrumors newbie

    Joined:
    Jun 11, 2013
    #16
    mDNS can be repeated!

    After more research...

    Some solutions are proposed on this post to route mDNS from the wifi subnet to the other one:
    http://forum.pfsense.org/index.php?topic=59693.msg321412#msg321412

    such as running an mDNS-repeater daemon on the Wifi router... cool but not so straight-forward.. :cool:
     

Share This Page