question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Server only listens on IPv4

See original GitHub issue

It seems that the server only listens on IPv4, but httpserver.host returns localhost.

This will resolve to ::1 on a dual-stack system, so connecting to it will fail. httpserver.host should either return an IPv4 address, or the server should listen on both.

On most OSs, listening to just IPv6 implicitly listens on IPv4, so it might just be a matter of listening on the latter.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:16 (16 by maintainers)

github_iconTop GitHub Comments

1reaction
WhyNotHugocommented, Jul 17, 2021

I think that’s clear enough.

It’s a very curious caveat though, and I think pretty much all systems nowadays are dualstack (even if they have public IPv6 connectivity). But given that I can’t think of a way to completely get rid of it, that sounds good to me.

1reaction
csernazscommented, Jul 6, 2021

Could you please look at the text I added to howto.rst? If there’s some error or I missed something, I’m happy to fix it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Services listening on IPv6 and IPv4 (or maybe not?)
–> At a first glance, it looks like ssh is running for IPv4 and IPv6, while syslog-ng shows only one line here. In...
Read more >
Apache server not listening on IPv4 but listening on IPv6
Surprisingly, SSH server is running and it is listening on IPv4 and IPv6 port 22. When tried with Listen 0.0.0.0:80 in httpd.conf, the...
Read more >
How do I get Apache to listen on ipv4 as well as ipv6? - Linode
I just created a Fedora Linux (version 35) linode and installed the Apache web server on it, following the directions at ...
Read more >
Node.js server only listening on ipv6 - Stack Overflow
1 Answer 1 · 1. How about running on both ipv6 and ipv4? – Abhay · 4. According to nodejs.org/api/net.html#net_server_listen_options_callback by ...
Read more >
apm-server only listens on ipv4 when using 'localhost:8200' as ...
I am using the apm-server-6.4.1-1.x86_64 package for CentOS 7 and noticed that the apm-server process only binds to the IPv4 address when ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found