Closed cocos56 closed 4 years ago
In the IPv4 era, the addresses given to machines were private, but in the IPv6 era, they were global.
hi, are you already using HFS without ipv6? with this repo i'm currently in the process of making it work correctly as it was, as i changed the dev environment. Only then I'll be able to make improvements. I'm not currently using ipv6 myself, and i'm not sure of what it takes to support it. I may find help from other people on github. We'll see.
In the IPv4 era you can bind 0.0.0.0
represents binding all IPv4 addresses of the host, in the IPv6 era you can bind ::
represents binding all IPv6 addresses of the host,.
In China, all cell phone base stations have been retrofitted, so IPv6 is generally supported for mobile traffic. I don't know about Italy.
You can test with https://ipv6-test.com/
Now I support IPv6 by running the following code on Windows :
netsh interface portproxy add v6tov4 listenaddress=:: listenport=80 connectaddress=127.0.0.1 connectport=80
You can try to access my HFS through the link below with IPv4 : http://sz.coco56.top:44165/ http://sz.coco56.top:39688/
And try to access my HFS through the link below with IPv6 : http://1.coco56.top/ http://5.coco56.top/
I got 1Gbps home, but I also tried with my mobile connection, and for both the test says: IPv6 Not supported
Still I can access your HFS on the v4 urls but not on the v6
According to https://www.china-ipv6.cn/#/index
Italy ranks ninth in the number of IPv6 address requests worldwide.
China ranks second in the number of IPv6 address requests worldwide.
Beijing(Peking) is the capital of China, and has been completed in the development of IPv6 network on December 4, 2019. I'm from a county that has just been lifted out of poverty, and my city is not the capital also.
You can see if other network operators in your area support IPv6. I have a feeling that some parts of Rome might support IPv6.
I have an aliyun server with a golbal IPv4 address and an IPv6 private address. If you need to test IPv6, I can provide it to you.
You can test it with its own IPv6 address, such as ::1
, not the IPv6 addresses of other machines.
I have an aliyun server with a golbal IPv4 address and an IPv6 private address. If you need to test IPv6, I can provide it to you.
thanks for your offer! when i'll be able to work on ipv6 we'll see how to do it. Or other people may work on it first...
would you please see if this build has some support for ipv6 ?
But this version cannot access http://127.0.0.1/
This version may only support IPv6.
Can you make it support both IPv6 and IPv4 ?
that was just an experiment, but the result is very interesting. You'll probably see ipv6 + ipv4 in next beta version or in final release.
If you have time, would you tell me which features you find that needs to be adapted for ipv6 ? At the moment i only know of 'bans'. Thanks
It applies to scenarios where resources are shared globally.
Global IPv4 addresses are now exhausted. This have become one of the factors restricting the development of the Internet.
As we all know, without a global network IP address, it is difficult for others to download to the files we have shared. And in many cases, they can only access the files by connecting to the same router as us.
In the IPv4 era, the addresses given to machines were private, but in the IPv6 era, they were global.
There was a misunderstanding with my last request. What I meant is: now that HFS will accept ipv6 requests, better than nothing but that's not enough, I will have to work on some other parts that needs to be adapted. For example, if you go to "Limits>Bans", you'll find impossible to enter ipv6 addresses, so you won't be able to use that specific feature. There may be others. I hope it is clearer now.
Ok, thank you. I see what you mean. I don't think there's anything special to do except Ban.
Can you make it support both IPv6 and IPv4 ?
can you tell me if this build works with both ipv6 and ipv4 ? hfs.zip
Can you make it support both IPv6 and IPv4 ?
can you tell me if this build works with both ipv6 and ipv4 ? hfs.zip
Only support IPv4, not support IPv6.
if you tell me how to make a test myself, i will not bother you anymore with more builds :) maybe there's a way i can do it on my pc or in my LAN, even if the ISP is not ready yet. Using this last build, if i try to connect to ::1 it works, so it must not be a good test.
run netstat -an
You should get the following results :
TCP 0.0.0.0:80 0.0.0.0:0 LISTENING TCP [::]:80 [::]:0 LISTENING
Both Ipv4 and Ipv6 support are now fully implemented. But Ipv6 access can sometimes be slow.
Maybe the performance of the machine I tested was too poor.
cool! i will try to include more ipv6 support for next release.
Ok, thank you!
IPv4 addresses are now exhausted. This have become one of the factors restricting the development of the Internet. The Chinese government and the ministry of industry and information technology are working hard on IPv6. So far, there are more than one billion IPv6 users in China. So there is an urgent need for applications that support IPv6.
As we all know, without a global network IP address, it is difficult for others to download to the files we have shared. And in many cases, they can only access the files by connecting to the same router as us.