We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I got a weird issue. Tried to connect using websocat ws://localhost:9090/ws and got this error:
websocat ws://localhost:9090/ws
websocat: WebSocketError: I/O failure websocat: error running
if I change the hostname to the IP address it works well.
my /etc/hosts has localhost records
/etc/hosts
localhost
127.0.0.1 localhost ::1 localhost
telnet command works well with the localhost hostname
telnet
$ telnet localhost 9090 Trying ::1... Connection failed: Connection refused Trying 127.0.0.1... Connected to localhost. Escape character is '^]'.
I guess it tried the IPv6 address, got connection refused, and exited.
connection refused
The text was updated successfully, but these errors were encountered:
It is know "happy eyeballs" deficiency in Websocat 1.0: #23 (comment)
You can workaround with wc-c:tcp: if proper hostname handling is really needed (or just use specific IP address if it is just localhost).
wc-c:tcp:
Sorry, something went wrong.
Thanks for clarifying. It would be great to be mentioned in the README file.
Update README.md
ad6410a
Addresses #194.
Implement Happy Eyeballs for ws://
f9deebe
Resolves #23. Resolves #194.
No branches or pull requests
I got a weird issue. Tried to connect using
websocat ws://localhost:9090/ws
and got this error:
if I change the hostname to the IP address it works well.
my
/etc/hosts
haslocalhost
recordstelnet
command works well with thelocalhost
hostnameI guess it tried the IPv6 address, got
connection refused
, and exited.The text was updated successfully, but these errors were encountered: