Skip to content

Not able to bind the socket to a port less than 1024 #45

@VijayLogitech

Description

@VijayLogitech

i am trying to convert my native app, to react-native for code sharing between android and ios. in my application, i use react-native-udp to detect the devices connected to the wifi. In my native application, i bind to a port 137, to detect a specfic type of device. When i try to recreate the same in react-native-udp, during bind, 137 it gives me error "EACCESS". the only difference i see from the native application code and react native udp code is, native application uses DatagramSockets(), where as react-native-udp is using MulticastSocket().
//new MulticastSocket(port);
Can you please make it work for binding to a port less than 1024?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions