tradle / react-native-udp

node's dgram for react-native
MIT License
340 stars 155 forks source link

iOS - UDP client Socket not opening or binding to IP address and Port #249

Closed sudheerkarumanchi closed 1 year ago

sudheerkarumanchi commented 1 year ago

Hello team,

We are using this npm package to communicate with some predefined address and port from both android & iOS. We have been successful in achieving the result from android but unsuccessful in iOS. Followed multiple ways to bind but throwing the below error every time. Tested in different iPhone variants and iOS simulators. Also we added permissions from native modules incase the below is causing due to that -

LOG socket-0 failed to bind Error in bind() function undefined LOG socket-0 failed to bind [Error: Error in bind() function] ERROR Error: Error in bind() function, js engine: hermes LOG socket-1 failed to bind Error in bind() function undefined LOG socket-1 failed to bind [Error: Error in bind() function]

Noticed one observation with using reusePort:true in options while creating socket. With this check, able to bound but failing to send/receive data.

Kindly help out on this and suggest what to be done to find a resolution.

Thanks in advance.

github-actions[bot] commented 1 year ago

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community attention? This issue may be closed if no further activity occurs.