# \#networking

**URL:** https://discourse.julialang.org/tag/networking/60.md

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

---

## [Error : MethodError(Core.kwcall, ((reuseaddr = true,), Sockets.send, UDPSocket(init), ip"192.168.10.255", 11000,](https://discourse.julialang.org/t/error-methoderror-core-kwcall-reuseaddr-true-sockets-send-udpsocket-init-ip-192-168-10-255-11000/135698)

<div class="topic-metadata">

**Author:** [@VinodV](https://discourse.julialang.org/u/VinodV)\
**Replies:** 1\
**Last updated:** [February 17, 2026, 2:51pm UTC](https://discourse.julialang.org/t/error-methoderror-core-kwcall-reuseaddr-true-sockets-send-udpsocket-init-ip-192-168-10-255-11000/135698 "2026-02-17T14:51:13Z")

</div>

Hi friends, From a (windows os) souce IP : 192.168.10.10 a unicasted udp message is coming to (rhel Linux OS) destination IP : 192.168.10.40, dest port : 2000 Line : addr, data = recvfrom(recv\_sock) I have written a …

---

## [Downloads.download or run(\`wget\`) much slower than direct \`wget\`](https://discourse.julialang.org/t/downloads-download-or-run-wget-much-slower-than-direct-wget/133501)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 2\
**Last updated:** [October 29, 2025, 4:31pm UTC](https://discourse.julialang.org/t/downloads-download-or-run-wget-much-slower-than-direct-wget/133501 "2025-10-29T16:31:47Z")

</div>

I am trying to download a relativelly large dataset from Zenodo (6GB), and if I use Downloads.download or run(wget) in a Julia v1.12 session, it takes 2h, while if I directly use wget in a console it takes 16 minutes. I…

---

## [Close instead of wait if TCP socket is never drained](https://discourse.julialang.org/t/close-instead-of-wait-if-tcp-socket-is-never-drained/131727)

<div class="topic-metadata">

**Author:** [@ettersi](https://discourse.julialang.org/u/ettersi)\
**Replies:** 1\
**Last updated:** [August 24, 2025, 3:23pm UTC](https://discourse.julialang.org/t/close-instead-of-wait-if-tcp-socket-is-never-drained/131727 "2025-08-24T15:23:50Z")

</div>

I was wondering how the triplet of OS, libuv and Julia handles the scenario where a TCP socket is constantly written to but never read from on the peer’s side, so I came up with this little test script. s = listen(1234)…

---

## [Can't reopen socket (EADDRINUSE)](https://discourse.julialang.org/t/cant-reopen-socket-eaddrinuse/129345)

<div class="topic-metadata">

**Author:** [@xor0110](https://discourse.julialang.org/u/xor0110)\
**Replies:** 1\
**Last updated:** [May 26, 2025, 2:06pm UTC](https://discourse.julialang.org/t/cant-reopen-socket-eaddrinuse/129345 "2025-05-26T14:06:34Z")

</div>

I’m writing a script where I open some TCP sockets to communicate with an external process. Once that process is finished I close the sockets and then I want to do the same thing again. When I try to open the sockets the…

---

## [Async UDP socket usage](https://discourse.julialang.org/t/async-udp-socket-usage/124401)

<div class="topic-metadata">

**Author:** [@mchitre](https://discourse.julialang.org/u/mchitre)\
**Replies:** 8\
**Last updated:** [January 9, 2025, 7:55am UTC](https://discourse.julialang.org/t/async-udp-socket-usage/124401 "2025-01-09T07:55:22Z")

</div>

We have a problem with async usage of UDP sockets, so I made a MWE to demonstrate it. We run a simple UDP echo deamon with socat: socat -v PIPE udp-recvfrom:9809,fork This listens on port 9809 and echoes back to the s…

---

## [How to correctly detect closed TCP connection](https://discourse.julialang.org/t/how-to-correctly-detect-closed-tcp-connection/92287)

<div class="topic-metadata">

**Author:** [@plukes](https://discourse.julialang.org/u/plukes)\
**Replies:** 2\
**Last updated:** [December 13, 2024, 10:06am UTC](https://discourse.julialang.org/t/how-to-correctly-detect-closed-tcp-connection/92287 "2024-12-13T10:06:47Z")

</div>

Hi, I have been trying to implement a simple TCP server that sends periodically data to a created connection. Based on the manual I can implement a minimal working example as follows: function write\_data(sock) whil…

---

## [Listen on both IPv4 and IPv6](https://discourse.julialang.org/t/listen-on-both-ipv4-and-ipv6/123651)

<div class="topic-metadata">

**Author:** [@phma](https://discourse.julialang.org/u/phma)\
**Replies:** 4\
**Last updated:** [December 10, 2024, 9:43am UTC](https://discourse.julialang.org/t/listen-on-both-ipv4-and-ipv6/123651 "2024-12-10T09:43:39Z")

</div>

I’m trying to listen on both IPv4 and IPv6. ear4=listen(IPv4(0),port) ear6=listen(IPv6(0),port) This resulted in IOError: listen: address already in use (EADDRINUSE) on the IPv6 line. I’m running Linux, and if I re…

---

## [Does stdlib network sockets use only first thread?](https://discourse.julialang.org/t/does-stdlib-network-sockets-use-only-first-thread/123027)

<div class="topic-metadata">

**Author:** [@Pedro](https://discourse.julialang.org/u/Pedro)\
**Replies:** 6\
**Last updated:** [December 4, 2024, 10:16am UTC](https://discourse.julialang.org/t/does-stdlib-network-sockets-use-only-first-thread/123027 "2024-12-04T10:16:17Z")

</div>

I am writing a multi-threaded applications with a GUI (CImGui.jl) and a network sockets (Base.Sockets) to handle low-latency data stream over local network via UDP. I have a few independent threads to handle data proces…

---

## [UDPSocket sends short datagram using reinterpret](https://discourse.julialang.org/t/udpsocket-sends-short-datagram-using-reinterpret/122640)

<div class="topic-metadata">

**Author:** [@xor0110](https://discourse.julialang.org/u/xor0110)\
**Replies:** 1\
**Last updated:** [November 14, 2024, 4:33pm UTC](https://discourse.julialang.org/t/udpsocket-sends-short-datagram-using-reinterpret/122640 "2024-11-14T16:33:55Z")

</div>

Is this a bug? Common use case for UDPSocket: I have a struct that isbits. I want to msg = reinterpret(UInt8, \[myobj\]) and transmit this via a UDP datagram to be read on another Julia process, where I’ll just recv the d…

---

## [OpenSSL.jl eof() blocks with Keep-Alive Connections](https://discourse.julialang.org/t/openssl-jl-eof-blocks-with-keep-alive-connections/109053)

<div class="topic-metadata">

**Author:** [@TheDude](https://discourse.julialang.org/u/TheDude)\
**Replies:** 0\
**Last updated:** [January 20, 2024, 6:25pm UTC](https://discourse.julialang.org/t/openssl-jl-eof-blocks-with-keep-alive-connections/109053 "2024-01-20T18:25:39Z")

</div>

I am struggling with reading from an sslstream (or even just a socket) with a keep alive connection (that is, ones where an HTTP request I send contains the ‘Connection: Keep-Alive header’). Specifically, it appears tha…

---

## [Send composite type over TCP/UDP?](https://discourse.julialang.org/t/send-composite-type-over-tcp-udp/5233)

<div class="topic-metadata">

**Author:** [@tuckermcclure](https://discourse.julialang.org/u/tuckermcclure)\
**Replies:** 7\
**Last updated:** [June 21, 2023, 8:36am UTC](https://discourse.julialang.org/t/send-composite-type-over-tcp-udp/5233 "2023-06-21T08:36:35Z")

</div>

I’m able to set up TCP and UDP to send some basic data back and forth, but I can’t figure out how to send the bits-type data from some simple immutable structs (short of sending each field separately). In C, I would just…

---

## [Problem with simple "echo" client/server](https://discourse.julialang.org/t/problem-with-simple-echo-client-server/100009)

<div class="topic-metadata">

**Author:** [@frylock](https://discourse.julialang.org/u/frylock)\
**Replies:** 2\
**Last updated:** [June 7, 2023, 3:18pm UTC](https://discourse.julialang.org/t/problem-with-simple-echo-client-server/100009 "2023-06-07T15:18:11Z")

</div>

Ok - this is not multithreaded or anything, just a simple “echo” server and client (just baby steps - trying to understand simple before I move on from there). I start the server first, then the client in a different she…

---

## [Help with custom packets over raw sockets](https://discourse.julialang.org/t/help-with-custom-packets-over-raw-sockets/95205)

<div class="topic-metadata">

**Author:** [@Fragamir](https://discourse.julialang.org/u/Fragamir)\
**Replies:** 1\
**Last updated:** [February 27, 2023, 4:27pm UTC](https://discourse.julialang.org/t/help-with-custom-packets-over-raw-sockets/95205 "2023-02-27T16:27:14Z")

</div>

Hi, I’m trying to write some custom packets (That I have already created and verified they are valid) to the network, I have tried using both tap interfaces and raw sockets. I created the raw socket following this thre…

---

## [Display IMAP server message when writing a command to it](https://discourse.julialang.org/t/display-imap-server-message-when-writing-a-command-to-it/56291)

<div class="topic-metadata">

**Author:** [@Chen](https://discourse.julialang.org/u/Chen)\
**Replies:** 14\
**Last updated:** [February 16, 2023, 8:02am UTC](https://discourse.julialang.org/t/display-imap-server-message-when-writing-a-command-to-it/56291 "2023-02-16T08:02:20Z")

</div>

I’m trying to hack out some codes to fetch emails from IMAP server. I’m able to connect to an IMAP server and send a message to the server I changed the user name and the password in the code below, because I do not wa…

---

## [Reading sockets asynchronously](https://discourse.julialang.org/t/reading-sockets-asynchronously/92096)

<div class="topic-metadata">

**Author:** [@Lincoln\_Hannah](https://discourse.julialang.org/u/Lincoln_Hannah)\
**Replies:** 6\
**Last updated:** [January 12, 2023, 5:05am UTC](https://discourse.julialang.org/t/reading-sockets-asynchronously/92096 "2023-01-12T05:05:24Z")

</div>

I’m using readavailable() within a loop to read messages from a tcp socket as they come in. Is there a version that doesn’t require a loop ? i.e. something that will call a function asynchronously with the incoming mes…

---

## [Linux raw socket](https://discourse.julialang.org/t/linux-raw-socket/91044)

<div class="topic-metadata">

**Author:** [@gmouts](https://discourse.julialang.org/u/gmouts)\
**Replies:** 5\
**Last updated:** [November 30, 2022, 4:45pm UTC](https://discourse.julialang.org/t/linux-raw-socket/91044 "2022-11-30T16:45:15Z")

</div>

Is there a way to open a raw linux socket through Julia? From the documentation, it seems that the answer to my question is no, but I wanted to double check.

---

## [Is there any package supporting Samba? or is there any workaround?](https://discourse.julialang.org/t/is-there-any-package-supporting-samba-or-is-there-any-workaround/90357)

<div class="topic-metadata">

**Author:** [@Bondan000](https://discourse.julialang.org/u/Bondan000)\
**Replies:** 2\
**Last updated:** [November 28, 2022, 2:36am UTC](https://discourse.julialang.org/t/is-there-any-package-supporting-samba-or-is-there-any-workaround/90357 "2022-11-28T02:36:44Z")

</div>

Hi all, I am trying to host a simple Dash.jl based webapp in an Openshift cloud platform. The webapp has to fetch a file from a windows share! I can’t access the file within openshift! with samba connector i be able to …

---

## [Bind UDP socket to interface](https://discourse.julialang.org/t/bind-udp-socket-to-interface/79164)

<div class="topic-metadata">

**Author:** [@Tine](https://discourse.julialang.org/u/Tine)\
**Replies:** 0\
**Last updated:** [April 7, 2022, 12:42pm UTC](https://discourse.julialang.org/t/bind-udp-socket-to-interface/79164 "2022-04-07T12:42:06Z")

</div>

Is it possible to bind a UDP socket to a specific ethernet interface? I looked at the option to call the C-function setsockopt() from Julia using ccall, but how do I do this, if this is at all possible? I want somethin…

---

## [Ping an IP address](https://discourse.julialang.org/t/ping-an-ip-address/72191)

<div class="topic-metadata">

**Author:** [@\_RBMK](https://discourse.julialang.org/u/_RBMK)\
**Replies:** 5\
**Last updated:** [November 28, 2021, 10:16pm UTC](https://discourse.julialang.org/t/ping-an-ip-address/72191 "2021-11-28T22:16:37Z")

</div>

How about, I’m working on a P2P module for Julia, and I need to do native ping to a host, there is already a post about this in the forum, but I’m trying to do it internally, from Julia. Is it possible to access the Raw …

---

## [Possible DNSSEC issue](https://discourse.julialang.org/t/possible-dnssec-issue/66526)

<div class="topic-metadata">

**Author:** [@Ross\_Boylan](https://discourse.julialang.org/u/Ross_Boylan)\
**Replies:** 1\
**Last updated:** [August 17, 2021, 7:50pm UTC](https://discourse.julialang.org/t/possible-dnssec-issue/66526 "2021-08-17T19:50:49Z")

</div>

I am unable to get DNS lookups for docs.julialang.org. My DNS server says 16-Aug-2021 16:18:33.166 lame-servers: info: no valid DS resolving docs.julialang.org/DS/IN': 198.144.192.4#53 and DNSSEC Analyzer - docs.julial…

---

## [Leiden algorithim implementation in Julia](https://discourse.julialang.org/t/leiden-algorithim-implementation-in-julia/55910)

<div class="topic-metadata">

**Author:** [@charperflow](https://discourse.julialang.org/u/charperflow)\
**Replies:** 5\
**Last updated:** [June 4, 2021, 5:31am UTC](https://discourse.julialang.org/t/leiden-algorithim-implementation-in-julia/55910 "2021-06-04T05:31:55Z")

</div>

I was wondering if anyone was aware of an implementation of the Leiden algorithm for Julia? It is a community detection algorithm which avoids the disconnected /poorly connected community problem associated with the louv…

---

## [Tips for fast parsing of "ad-hoc" protocol](https://discourse.julialang.org/t/tips-for-fast-parsing-of-ad-hoc-protocol/56718)

<div class="topic-metadata">

**Author:** [@DrChainsaw](https://discourse.julialang.org/u/DrChainsaw)\
**Replies:** 3\
**Last updated:** [March 15, 2021, 9:52am UTC](https://discourse.julialang.org/t/tips-for-fast-parsing-of-ad-hoc-protocol/56718 "2021-03-15T09:52:27Z")

</div>

I’m in the process of trying to implement a fast-ish protocol parser/reader/whatever for a (from what I can tell) ad-hoc:ish protocol. Use case for context is to speed up a ‘let’s start this before lunch and maybe it’s d…

---

## [\[ANN\] Websocket - High level API for Server and Client with documentation](https://discourse.julialang.org/t/ann-websocket-high-level-api-for-server-and-client-with-documentation/47957)

<div class="topic-metadata">

**Author:** [@citkane](https://discourse.julialang.org/u/citkane)\
**Replies:** 4\
**Last updated:** [October 9, 2020, 2:56pm UTC](https://discourse.julialang.org/t/ann-websocket-high-level-api-for-server-and-client-with-documentation/47957 "2020-10-09T14:56:54Z")

</div>

Websocket.jl Github Code Why another Websocket package? The existing Julia websocket solutions are in various states of development and lack comprehensive high level API’s comparable to offerings in other languages s…

---

## [TLS Libraries](https://discourse.julialang.org/t/tls-libraries/47268)

<div class="topic-metadata">

**Author:** [@cshenton](https://discourse.julialang.org/u/cshenton)\
**Replies:** 2\
**Last updated:** [September 27, 2020, 3:48pm UTC](https://discourse.julialang.org/t/tls-libraries/47268 "2020-09-27T15:48:40Z")

</div>

Are there any widely used TLS libraries in Julia, even non pure ones? The sockets API in stdlib is great but my use case isn’t over LAN so I need proper crypto and google searches don’t turn up an obvious choice for TLS…

---

## [UDP socket sending response, lacking sendto](https://discourse.julialang.org/t/udp-socket-sending-response-lacking-sendto/44591)

<div class="topic-metadata">

**Author:** [@racinmat](https://discourse.julialang.org/u/racinmat)\
**Replies:** 2\
**Last updated:** [August 9, 2020, 8:19am UTC](https://discourse.julialang.org/t/udp-socket-sending-response-lacking-sendto/44591 "2020-08-09T08:19:58Z")

</div>

Hi, I’m trying to establish UDP communication in Julia. For python I see there is a sendto method that lets me respond to the UDP socket UdpCommunication - Python Wiki it’s also in the linux sendto(2): send message on s…

---

## [Bottleneck when receiving UDP packets?](https://discourse.julialang.org/t/bottleneck-when-receiving-udp-packets/41425)

<div class="topic-metadata">

**Author:** [@tamasgal](https://discourse.julialang.org/u/tamasgal)\
**Replies:** 24\
**Last updated:** [June 15, 2020, 9:17pm UTC](https://discourse.julialang.org/t/bottleneck-when-receiving-udp-packets/41425 "2020-06-15T21:17:57Z")

</div>

I hope some network experts can help me here, this is probably not-so-Julia-related. My problem is that I am unable to receive more than ~600 UDP packets per second (on my MacBook, on my Xeon it’s ~900/s) however, I am …

---

## [ZeroMQ vs. other transport protocols (such as nanomsg)?](https://discourse.julialang.org/t/zeromq-vs-other-transport-protocols-such-as-nanomsg/2136)

<div class="topic-metadata">

**Author:** [@ScottPJones](https://discourse.julialang.org/u/ScottPJones)\
**Replies:** 4\
**Last updated:** [December 12, 2019, 12:38am UTC](https://discourse.julialang.org/t/zeromq-vs-other-transport-protocols-such-as-nanomsg/2136 "2019-12-12T00:38:54Z")

</div>

I’m interested in your opinion on ZMQ vs. other things such as nanomsg - we are currently also using ZeroMQ for communications in Julia (with our own wrapper), but one of the people at my company is concerned because th…

---

## [How to initialize \`UDPSocket\` for broadcast?](https://discourse.julialang.org/t/how-to-initialize-udpsocket-for-broadcast/17149)

<div class="topic-metadata">

**Author:** [@standarddeviant](https://discourse.julialang.org/u/standarddeviant)\
**Replies:** 3\
**Last updated:** [November 6, 2018, 1:04am UTC](https://discourse.julialang.org/t/how-to-initialize-udpsocket-for-broadcast/17149 "2018-11-06T01:04:09Z")

</div>

What is the correct way to initialize a UDPSocket for only sending broadcast packets? I wondered if this would work: julia\> usock=UDPSocket() UDPSocket(init) julia\> send(usock, ip"255.255.255.255", 42000, "test") ERRO…

---

## [Measuring network I/O of Master/Worker communication](https://discourse.julialang.org/t/measuring-network-i-o-of-master-worker-communication/6245)

<div class="topic-metadata">

**Author:** [@lage](https://discourse.julialang.org/u/lage)\
**Replies:** 3\
**Last updated:** [September 9, 2018, 11:17pm UTC](https://discourse.julialang.org/t/measuring-network-i-o-of-master-worker-communication/6245 "2018-09-09T23:17:44Z")

</div>

hello, Is there any way to measure the network traffic from/to workers? I mean something like Docker NET I/O stats: docker stats | Docker Documentation We need to measure how much data was exchanged between a worker an…

---

## [Sending Custom Packets over Raw Socket (e.g. custom ICMP payload, etc.)](https://discourse.julialang.org/t/sending-custom-packets-over-raw-socket-e-g-custom-icmp-payload-etc/5772)

<div class="topic-metadata">

**Author:** [@PriceHardman](https://discourse.julialang.org/u/PriceHardman)\
**Replies:** 0\
**Last updated:** [September 7, 2017, 10:27pm UTC](https://discourse.julialang.org/t/sending-custom-packets-over-raw-socket-e-g-custom-icmp-payload-etc/5772 "2017-09-07T22:27:57Z")

</div>

Hello, My apologies in advance if this is not the correct category for this question. I’m interested in trying to write a ping or traceroute-like tool in Julia (partly for my own edification, but also for use in networ…

[Next page](https://discourse.julialang.org/tag/networking/60.md?match_all_tags=true&page=1&tags%5B%5D=networking)
