From tg at e-tge.de Wed Sep 2 19:06:54 2015 From: tg at e-tge.de (e-tge) Date: Wed, 02 Sep 2015 21:06:54 +0200 Subject: [Tox Support] Dynamic IP Addrs Message-ID: <1441220814.4340.61.camel@nutmeg.fritz.box> Hello! I looked through the docs - very exciting. Two questions though (for which I could not find an answer anywhere): 1) Many people use computers at home connected to the WWW through some router supplied by Internet-providers. My computer uses DHCP and may have a different IP address every time (let's say 1.2.3.4), the same applies to my router (e.g. 2.3.4.5), which finally NATs my computer's address to the outside world (2.3.4.44). Same applies to my friend I'm about to call ... How is this supposed to work considering the peer-to-peer concept? 2) What stands DHT for? (Possibly that answers 1 :-) Thx tge -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 181 bytes Desc: This is a digitally signed message part URL: From zetok at openmailbox.org Thu Sep 3 09:29:57 2015 From: zetok at openmailbox.org (Zetok Zalbavar) Date: Thu, 3 Sep 2015 10:29:57 +0100 Subject: [Tox Support] Dynamic IP Addrs In-Reply-To: <1441220814.4340.61.camel@nutmeg.fritz.box> References: <1441220814.4340.61.camel@nutmeg.fritz.box> Message-ID: <55E81315.2060500@openmailbox.org> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 02.09.2015 20:06, e-tge wrote: > > Hello! > > I looked through the docs - very exciting. > > Two questions though (for which I could not find an answer > anywhere): > > 1) Many people use computers at home connected to the WWW through > some router supplied by Internet-providers. My computer uses DHCP > and may have a different IP address every time (let's say 1.2.3.4), > the same applies to my router (e.g. 2.3.4.5), which finally NATs my > computer's address to the outside world (2.3.4.44). Same applies to > my friend I'm about to call ... How is this supposed to work > considering the peer-to-peer concept? Well, it just works? ;) UDP hole-punching is used, and if that doesn't work, then TCP-relay is used to make an initial connection between peers. > 2) What stands DHT for? (Possibly that answers 1 :-) https://en.wikipedia.org/wiki/Distributed_hash_table :) > Thx tge > Thanks for asking - I've added link to wikipedia article on what is DHT in FAQ section. - -- Kind regards, Zetok Zalbavar - ---- My Tox ID: 29AE62F95C56063D833024B1CB5C2140DC4AEB94A80FF4596CACC460D7BAA062E0A92C34 24A0 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBAgAGBQJV6BMVAAoJEMlT04gCEgaKYYoQAJgCvc4+R5lcYz6yUMGJRqs5 ff2lpi2CI6fedgNX9D8JYvtK+W1ZZW7AVHMPSup5DFmC8z6KvtfOu8LoOn/hSEN6 W3j8+U9SpRk3X/fqc/KFy7ykhQ+5Hb2VKtI4lj2E57WIMoVSlVZOIW2Ty6mqIFWv Gn8JGEjvsA/7UlSDXKL/ZWT6KsKZ3lyW3bRl4ZU3uLsY2C/sDRhuvr5o9++UIkNd ScMPxJBzpDI3PEKEdb69HLN7ft5Sc6mxhCZElnzN7YhdzOuvGJh8j6SLK0zq6Jqz wP1ZJ31ul2TgQDQvqKy/Bj2t9ifX+baRPyoChzRV2xpWjorOJCTPJtyjuugy41SC BQapRzAtYOvv5wCbUN/gUFT9TOS6mVQ/p2ktNl88OA+R8VOiiy8tlvLVeS5ejFNB EgLzEGQzXzRiQ1AA79HQ1OzrCJX+oM+U9mW3RJwO0am3I2kDjm4DH0q2HQk2YxFO 8VI91UQfrEXCoEm7H9YplMsID46RjwywsOR2RxH8lq6VDM08+Y8WNcGEY0QIbL/z OWc43yL57rZFVcSnuacn9qd25rGF5sDHBpOS+cBabNE25DEojaxE4I5f5TiYUuRC 30ZtE/li6uDYHAxd1qyuX330vbf6cmrvU/qfkx5CoLNKjdW4czWFS8KYfagepV9i yFKs86cKW8vDC6MBTekK =g6IL -----END PGP SIGNATURE----- From email at oranges.net.nz Thu Sep 3 22:14:30 2015 From: email at oranges.net.nz (oranges) Date: Fri, 04 Sep 2015 10:14:30 +1200 Subject: [Tox Support] Dynamic IP Addrs In-Reply-To: <1441220814.4340.61.camel@nutmeg.fritz.box> References: <1441220814.4340.61.camel@nutmeg.fritz.box> Message-ID: <55E8C646.3060009@oranges.net.nz> Hello and Welcome to the tox mailing list! On 03/09/15 07:06, e-tge wrote: > 1) Many people use computers at home connected to the WWW through > some router supplied by Internet-providers. My computer uses DHCP > and may have a different IP address every time (let's say 1.2.3.4), > the same applies to my router (e.g. 2.3.4.5), which finally NATs my > computer's address to the outside world (2.3.4.44). Same applies to > my friend I'm about to call ... How is this supposed to work > considering the peer-to-peer concept? Zetok already answered part of this in that UDP does holepunching that allows it to go through NAT'ed connections. The second part is that every time you start tox and reconnect to the global p2p network your tox ID is republished with your new IP address (note that this is a simplification as significant extra work is done to help you remain as anonymous as possible) This means that as long as your friend knows your Tox ID, he can look that up in the DHT and find your currently published IP and then you can begin to talk p2p Regards oranges From tg at e-tge.de Fri Sep 4 10:47:43 2015 From: tg at e-tge.de (e-tge) Date: Fri, 04 Sep 2015 12:47:43 +0200 Subject: [Tox Support] Dynamic IP Addrs In-Reply-To: <1441220814.4340.61.camel@nutmeg.fritz.box> References: <1441220814.4340.61.camel@nutmeg.fritz.box> Message-ID: <1441363663.4340.192.camel@nutmeg.fritz.box> Many thx - this was almost the answer I was looking for, see below ... > Hello and Welcome to the tox mailing list! > > On 03/09/15 07:06, e-tge wrote: > > 1) Many people use computers at home connected to the WWW through > > some router supplied by Internet-providers. My computer uses DHCP > > and may have a different IP address every time (let's say 1.2.3.4), > > the same applies to my router (e.g. 2.3.4.5), which finally NATs my > > computer's address to the outside world (2.3.4.44). Same applies to > > my friend I'm about to call ... How is this supposed to work > > considering the peer-to-peer concept? > > Zetok already answered part of this in that UDP does holepunching that > allows it to go through NAT'ed connections. > > The second part is that every time you start tox and reconnect to the > global p2p network your tox ID is republished with your new IP address > (note that this is a simplification as significant extra work is done > to help you remain as anonymous as possible) This is/was the interesting part (in combination with "DHT"). So I sign in, the tox core/client publishes my ID with my current IP address to ... ehm ... where to exactly? I suppose this is not the "DNS" service explained somewhere in the Wiki, as that sounds as if it just maps some kind of textual name to the ID, but does not take care of the ID -> IP addr mapping. > This means that as long as your friend knows your Tox ID, he can look > that up in the DHT and find your currently published IP and then you > can begin to talk p2p Makes sense ... :-) Another thing which should appear in some prominent (!) place on the web site is a statement, that tox.chat has nothing to do with this: https://blogs.mcafee.com/mcafee-labs/meet-tox-ransomware-for-the-rest-of-us When originally reading through the WWW I found that (and tox.im which did not work (yes, explained somewhere)) and that sounds quite frightening and might people make stay away from "our tox" here. Many thx!! tge > Regards > oranges -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 181 bytes Desc: This is a digitally signed message part URL: From email at oranges.net.nz Sat Sep 5 05:24:17 2015 From: email at oranges.net.nz (Oranges) Date: Sat, 5 Sep 2015 17:24:17 +1200 Subject: [Tox Support] Dynamic IP Addrs In-Reply-To: <1441363663.4340.192.camel@nutmeg.fritz.box> References: <1441220814.4340.61.camel@nutmeg.fritz.box> <1441363663.4340.192.camel@nutmeg.fritz.box> Message-ID: <55EA7C81.4000305@oranges.net.nz> Hello Again >> Zetok already answered part of this in that UDP does holepunching that >> allows it to go through NAT'ed connections. >> >> The second part is that every time you start tox and reconnect to the >> global p2p network your tox ID is republished with your new IP address >> (note that this is a simplification as significant extra work is done >> to help you remain as anonymous as possible) > > This is/was the interesting part (in combination with "DHT"). So I sign > in, the tox core/client publishes my ID with my current IP address to ... > ehm ... where to exactly? It publishes it to the DHT, essentially your IP->ID mapping will be stored on some other nodes in the global p2p network of tox, then as nodes are added and removed from the DHT your information is always stored on at least one or two nodes (usually when a node joins it asks the network for information considered "close" to it's node id - note that closeness is an arbitrary number based on any number of criteria, not actual distances). Which means other clients can look this information up as they need it by asking the other nodes in the p2p network. Your own client will also be a part of this and will sometimes store the IP->ID mapping for other clients so that their friends can look them up. cheers oranges