I have searched the old issues, but could not find this issue. Running a local webserver on a non-standard port and trying to access that with Firefox doesn't work. E.g. http://localhost:8080/ gets an "Unable to connect".
I'm sorry if I have missed anything, but I haven't been able to locate any settings directly regarding this.
I vaguely remember having this issue. I think I fixed it by enabling network.dns.disableIPv6.
Yes, that did it. Thanks. I wonder why disabling IPv6 would affect that.
^ Your router is my guess OS options?
Anyway, I've seen this before as well, and the answer wasn't to enable IPv6, it was to change a config in the server.. I'll see if I can find it
ahh, here we go #757
edit: given this has hit a few users now, we should probably add something to the user.js
I did a bit of searching, and for windows, for example, you can change the priority of ipv4 over ipv6. Or you can disable ipv6 OS wide. And I think you can add a redirect in hosts as another solution. But I'm totally loathe to suggest OS changes to users, and these solutions just seem wrong, as they're out of scope IMO, and can lead to other problems
The php solution is great
@iio7 What are you running for your server, what OS?
This issue is directly related, I was also starting up a PHP server!
I don't think this should be dealt with in user.js as this looks like a crazy PHP problem. Why would using "localhost" make it serve IPv6 only, but "127.0.0.1" IPv4? That is such a weird behavior!
I don't think this should be dealt with in user.js ...
@iio7 : would it have helped you if you had searched for localhost and found something like this
/* 0701: disable IPv6
* ...
* [NOTE] This may break localhost in PHP. Try configuring your server, see arkenfox #757
* ... ***/
user_pref("network.dns.disableIPv6", true);
So, did you manage to tweak your PHP server and now it's all working?
Yes, definitely! :) The first thing I did was to enter user.js and search for localhost :)
I recommend making it even easier with something like:
[NOTE] This may break localhost in PHP.
Use php -S 127.0.0.1:PORT for IPv4 since PHP defaults to IPv6 when you use "localhost".
See arkenfox #757
By the way, thank you for the amazing work!