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 use vibe-d 0.7.16, OS is Linux Ubuntu 12.10 64bit, DMD 2.063.2. Code is "Hello, World!" from this example: https://github.com/rejectedsoftware/vibe.d/blob/master/examples/http_server/source/app.d
import vibe.appmain; import vibe.http.server; void handleRequest(HTTPServerRequest req, HTTPServerResponse res) { res.writeBody(cast(ubyte[])"Hello, World!", "text/plain"); } shared static this() { auto settings = new HTTPServerSettings; settings.port = 8080; listenHTTP(settings, &handleRequest); }
After run I have got the error: Listening for HTTP requests on :::8080 Failed to listen on 0.0.0.0:8080
If I specify bind addresses
settings.bindAddresses = ["0.0.0.0", "::"];
I have got the error: Listening for HTTP requests on 0.0.0.0:8080 Failed to listen on :::8080
If I bind only IPv4 or IPv6 interfaces, its OK.
The text was updated successfully, but these errors were encountered:
Duplicate for #249
Sorry, something went wrong.
Use explicit bind addresses in all HTTP server examples. See #8 and #298
2fb92b7
.
No branches or pull requests
I use vibe-d 0.7.16, OS is Linux Ubuntu 12.10 64bit, DMD 2.063.2.
Code is "Hello, World!" from this example:
https://github.com/rejectedsoftware/vibe.d/blob/master/examples/http_server/source/app.d
After run I have got the error:
Listening for HTTP requests on :::8080
Failed to listen on 0.0.0.0:8080
If I specify bind addresses
I have got the error:
Listening for HTTP requests on 0.0.0.0:8080
Failed to listen on :::8080
If I bind only IPv4 or IPv6 interfaces, its OK.
The text was updated successfully, but these errors were encountered: