ZeroNet icon indicating copy to clipboard operation
ZeroNet copied to clipboard

Detect if there is a IPv6 address (IP, CJDNS, Yggdrasil)

Open danimesq opened this issue 5 years ago • 13 comments

Then, set ZeroNet address to ::1:43110 instead of http://127.0.0.1:43110/

danimesq avatar May 15 '19 23:05 danimesq

what would be the benefit of it?

HelloZeroNet avatar May 16 '19 00:05 HelloZeroNet

If a mesh router redirects all IPv4 traffic to a start page, ZeroNet UI will also be redirected, so also its UI should support IPv6.

danimesq avatar May 16 '19 00:05 danimesq

Reference: https://github.com/datproject/dat/issues/1111

danimesq avatar May 16 '19 01:05 danimesq

If you want to bind it to the ipv6 ip you can do it by: --ui_ip "::1" or if you start it with --ui_ip "*", then it should be available on all ip address of your machine

HelloZeroNet avatar May 16 '19 09:05 HelloZeroNet

What about the shared links (0talk, zerome, etc), that are IPv4?

It would need a inner redirection

danimesq avatar May 16 '19 17:05 danimesq

it should change the links automatically based on the host you are using to access the client.

HelloZeroNet avatar May 16 '19 17:05 HelloZeroNet

@DaniellMesquita I've told others to follow this rule, but I'll repeat it here again, as this is now really important:

Never hardcode 127.0.0.1:43110. People might use other ports, proxies, IPv6, etc. If you want to link to ZeroTalk, use /Talk.ZeroNetwork.bit/ address (the first slash is required, the last one can be omitted but is a tradition).

purplesyringa avatar May 30 '19 14:05 purplesyringa

it should change the links automatically based on the host you are using to access the client.

Does this apply in all cases? Or only when users write 127.0.0.1:43110? For example my navbar usually shows something like: http://domainname.bit/ or http://zero/domainnameoraddress. Will it autochange these links for people or do I have to keep editing it by hand?

April93 avatar Aug 10 '19 10:08 April93

It's based on the site, but eg. ZeroTalk will only transform the http://127.0.0.1:43110 format: https://github.com/HelloZeroNet/ZeroTalk/blob/master/js/utils/Text.coffee#L34

HelloZeroNet avatar Aug 11 '19 13:08 HelloZeroNet

/home/styromaniac/ZeroNet-linux-dist-linux64/ZeroNet.sh --ui_ip "*"

The above didn't work. I tried both http://[::1]:43110/ and http://[200:dce3:f78d:eed3:4f03:9b65:b984:5150]:43110/

styromaniac avatar Jan 15 '21 22:01 styromaniac

/home/styromaniac/ZeroNet-linux-dist-linux64/ZeroNet.sh --ui_ip "::1"

http://[::1]:43110/

Server error Err: gaierror: [Errno -2] Name or service not known in UiServer.py line 107 > UiRequest.py line 116 > /_socketcommon.py line 163 > ...

http://[200:dce3:f78d:eed3:4f03:9b65:b984:5150]:43110/

Unable to connect

styromaniac avatar Jan 15 '21 23:01 styromaniac

@styromaniac

I didn't equate hate speech to free speech, you pedantic little prick. via: https://github.com/Floflis/meta/issues/40#issuecomment-761097933

So, why you came to bump this very old issue from who you consider a "pedantic little prick"? I think there are other old issues you could take a look.

danimesq avatar Jan 16 '21 00:01 danimesq

@styromaniac

I didn't equate hate speech to free speech, you pedantic little prick. via: Floflis/meta#40 (comment)

So, why you came to bump this very old issue from who you consider a "pedantic little prick"? I think there are other old issues you could take a look.

Because it's relevant to what I wanted out of ZeroNet...

styromaniac avatar Jan 16 '21 01:01 styromaniac