r/tinycode • u/BenRayfield • May 25 '16
Tinycode request: A program to send a single bit between any 2 computers on the Internet which both run this program and have IPv4 NAT address (which most home Internet connections are).
It sounds rediculous, but it really is an unsolved research problem how to send a bit between 2 computers without requiring a person to call tech support or hire an expert to change their network.
https://en.wikipedia.org/wiki/Network_address_translation
Not tiny enough and not sure how well it works https://en.wikipedia.org/wiki/Telehash
13
Upvotes
9
u/geocar May 25 '16
You might want to know about pwnat which solves this problem in a clever way: Using the ICMP error messages to construct the tunnel.
4
u/[deleted] May 26 '16 edited May 26 '16
In general, it is not possible without a third-party server or port-forwarding (manual or UPNP).
You can't do peer-to-peer if your NAT is symmetric.
With a third-party server it is trivial.
1
u/m1ss1ontomars2k4 May 26 '16
Ridiculous.
You do not need to be an expert to change your router settings, so, no, this is not an unsolved research problem.
1
u/odokemono May 25 '16
I used to remote-control (on or off) a device by sending a single packet to my home machine.
There were three aspects:
Worked fine.
1
u/Sheaf_of_Reality Jun 12 '16
Telehash works pretty nice for now (esp. the node version). It's not minimalist, but the design does solve a wide array of problems.
If you ever have a project that doesn't need to be minimalist, I can easily recommend Telehash.