Kitura / Kitura/BlueSocket

Unable to bind to source address UDP

Open
#163 7 comments 0 reactions 1 assignee Claimed by @adam-rocska View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.