Unable to bind to source address UDP
Open
- Dominant language
- Swift
- Stars
- 1.4k
- Forks
- 193
- PR merge metrics
- No merged PRs in 30d
Description
I can't find the way to bind to a specific interface/IP using the UDP socket.
I tried with something similar to:
```
try socket.listen(on: self.port, maxBacklogSize: Socket.SOCKET_DEFAULT_MAX_BACKLOG, allowPortReuse: false, node: "my IP address")
let (bytes, address) = try socket.readDatagram(into: &data)
```
But that way I don't receive any data. What am I doing wrong?
Contributor guide
Assessment
This issue has not been assessed yet.