Thank you both! I’m starting with @mgkuhn initial suggestion with ip addr
.
Success! From the PC:
yakir@luna:~$ ping 192.168.80.2
PING 192.168.80.2 (192.168.80.2) 56(84) bytes of data.
64 bytes from 192.168.80.2: icmp_seq=1 ttl=64 time=0.396 ms
64 bytes from 192.168.80.2: icmp_seq=2 ttl=64 time=0.266 ms
64 bytes from 192.168.80.2: icmp_seq=3 ttl=64 time=0.264 ms
^C
and
yakir@luna:~$ ssh 192.168.80.2
yakir@raspberrypi:~ $ ping 192.168.80.1
PING 192.168.80.1 (192.168.80.1) 56(84) bytes of data.
64 bytes from 192.168.80.1: icmp_seq=1 ttl=64 time=0.320 ms
64 bytes from 192.168.80.1: icmp_seq=2 ttl=64 time=0.347 ms
64 bytes from 192.168.80.1: icmp_seq=3 ttl=64 time=0.821 ms
But what IP address (and port) do I put in:
server = WebSockets.listen!("<some IP address>", 8081) do ws
...
I blindly tried 192.168.80.0-3 with a variation of ports, but I keep getting
ERROR: cannot bind to port; may already be in use or access denied
Stacktrace:
[1] error(s::String)
@ Base ./error.jl:35
[2] #listen#10
@ ~/.julia/juliaup/julia-1.9.2+0.aarch64.linux.gnu/share/julia/stdlib/v1.9/Sockets/src/Sockets.jl:620 [inlined]
[3] listen
@ ~/.julia/juliaup/julia-1.9.2+0.aarch64.linux.gnu/share/julia/stdlib/v1.9/Sockets/src/Sockets.jl:618 [inlined]
[4] HTTP.Servers.Listener(addr::Sockets.InetAddr{Sockets.IPv4}, host::String, port::String; sslconfig::Nothing, reuseaddr::Bool, backlog::Int64, server::Nothing, listenany::Bool, kw::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
@ HTTP.Servers ~/.julia/packages/HTTP/nn2yB/src/Servers.jl:69
[5] Listener
@ ~/.julia/packages/HTTP/nn2yB/src/Servers.jl:39 [inlined]
[6] HTTP.Servers.Listener(host::String, port::Int64; kw::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
@ HTTP.Servers ~/.julia/packages/HTTP/nn2yB/src/Servers.jl:74
[7] Listener
@ ~/.julia/packages/HTTP/nn2yB/src/Servers.jl:74 [inlined]
[8] #listen!#7
@ ~/.julia/packages/HTTP/nn2yB/src/Servers.jl:313 [inlined]
[9] listen!(::Function, ::String, ::Int64)
@ HTTP.Servers ~/.julia/packages/HTTP/nn2yB/src/Servers.jl:313
[10] listen!(::Function, ::String, ::Vararg{Any}; kw::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
@ HTTP.WebSockets ~/.julia/packages/HTTP/nn2yB/src/WebSockets.jl:417
[11] listen!(::Function, ::String, ::Vararg{Any})
@ HTTP.WebSockets ~/.julia/packages/HTTP/nn2yB/src/WebSockets.jl:417
[12] top-level scope
@ REPL[3]:1