#UDPListener.jl
using Sockets
s = Sockets.UDPSocket()
Sockets.bind(s, ip"200.120.1.1", 11028)
while true
hostport, packet = Sockets.recvfrom(s)
println(packet)
end
When both files are run in seperate Julia command lines,
The statement “println(packet)” in UDPListener.jl is able to print data in the command line.
But these packets are not captured by Wireshark.
Why Wireshark is not able to display the packets?
I recall having a similar problem with loopback (albeit not using Julia) on Solaris, and it seems that the same is true for Windows, according to the Wireshark docs for loopback:
Summary: you can capture on the loopback interface on Linux, on various BSDs including macOS, and on Digital/Tru64 UNIX, and you might be able to do it on Irix and AIX, but you definitely cannot do so on Solaris, HP-UX, or Windows.