Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ipv6 only server #177

Open
behinger opened this issue Jul 17, 2023 · 1 comment
Open

ipv6 only server #177

behinger opened this issue Jul 17, 2023 · 1 comment

Comments

@behinger
Copy link
Contributor

behinger commented Jul 17, 2023

Hi!
on an ipv6-only server, JSServe doesnt work for me (and with that WGLMakie, my main target). While the plot is showing, I get the following error in the console (and interactivity is not working):
Firefox kann keine Verbindung zu dem Server unter ws://localhost:9384/bc499795-49cc-44e8-9540-a5156c8ad9d9 aufbauen.

I dont have much time to test/fix it right now (maybe later), but the fix might already be:

https://github.com/SimonDanisch/JSServe.jl/blob/40ec38455b7d05d9f1fcdc46ac6e456ff44df1a4/src/HTTPServer/implementation.jl#L235

Needs an ipv4/ipv6 flag looped through to Sockets.getaddr()
(else WGLMakie.Page(;listen_url = "::/0",external_url = "bla.blub") runs into


DNSError: ::/0, unknown node or service (EAI_NONAME)

    getalladdrinfo(::String)@addrinfo.jl:113
    [email protected]:141[inlined]
    try_listen(::String, ::Int64)@implementation.jl:235

and (optionally as a user you can overwrite) https://github.com/SimonDanisch/JSServe.jl/blob/master/src/server-defaults.jl

might need specifications for ipv6 (e.g. ipv6 flag + "::/0" as default).


That being said, I have little tidea of what's going on with ipv6 (especially with a nat64 in the background trying to make some ipv4 things compatibler)- I simply have a server that is ipv6-only and it is a terrible mess so far - so whatever I propose here, take it with a large grain of salt.
I do think I have the correct ports open - e.g. Pluto is working right now, but then again, who knows 🤷

@SimonDanisch
Copy link
Owner

Ah yeah, we should refactor that to allow directly passing a InetAddr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants