Skip to content

zeroconf.publishService not working !! #188

@YoucefBen47

Description

@YoucefBen47

Testing on react-native 0.73.6 and 0.75.1 we have followed the steps mention in the docs.

import Zeroconf from 'react-native-zeroconf';

const zeroconf = new Zeroconf();

useEffect(() => {
    zeroconf.publishService(
      '_myservice._tcp',
      'tcp',
      'local.',
      'MyService',
      8004,
      {},
    );
    
  }, []);

We used Discovery browser and Bonjour browser and seems like the service is not being published.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions