diodechain / diode_client

Diode client written in GO that runs the Blockquick™ algorithm and a socks server to transmit data through diodechain.
https://diode.io/download
Other
65 stars 23 forks source link

Forward Port on Local Lan client #89

Closed jimthedj65 closed 2 years ago

jimthedj65 commented 3 years ago

I setup an Espressif 32s and ESP-EYE with built in webservers, I have a mac running Big Sur with the latest diode client installed INFO Diode Client version : v0.10.3 23 Feb 2021 INFO GO Version : go1.15.8 INFO Openssl Version : OpenSSL 1.0.2u 20 Dec 2019 INFO OS ARCH CPU : darwin amd64 8

ESP IP is 192.168.3.65 Mac IP is 192.168.3.101 when I submit from the MAC to forward the espressif server diode publish -public 192.168.3.65:80:80 I get the following errors

Diode Web side Header fields are too long for server to interpret

MAC HOST CLI side diode publish -public 192.168.3.65:80:80 INFO Diode Client version : v0.10.3 23 Feb 2021 INFO Client address : 0xbfdc5694ee4765e495fd47c205fc23e0aae70140 INFO Fleet address : 0x6000000000000000000000000000000000000000 INFO Connected to host: eu2.prenet.diode.io:41046, validating... INFO Network is validated, last valid block: 1502122 0x00005072b9175811dee1439aa519f57d30564c6a8f61c2e31ce6162b207e4fb7 INFO Client connection closed by remote. server=as2.prenet.diode.io:41046 INFO INFO HTTP Gateway Enabled : http://0xbfdc5694ee4765e495fd47c205fc23e0aae70140.diode.link/ INFO Port : INFO Port 192.168.3.65:80 : 80 public any INFO Open port 0xc000422500 server=eu2.prenet.diode.io:41046 ref=a\ufffdo\ufffd client= device=0x84c485c62cdd878ce795aa90f269f84b5ae4fa0e ERROR Failed to connect local: dial tcp 192.168.3.65:80: i/o timeout server=eu2.prenet.diode.io:41046 INFO Open port 0xc000422640 server=eu2.prenet.diode.io:41046 ref=\u0008\ufffdI7 client= device=0x84c485c62cdd878ce795aa90f269f84b5ae4fa0e ERROR Failed to connect local: dial tcp 192.168.3.65:80: i/o timeout server=eu2.prenet.diode.io:41046 INFO Open port 0xc0001a0140 server=eu2.prenet.diode.io:41046 ref=9g\ufffd\ufffd client= device=0x84c485c62cdd878ce795aa90f269f84b5ae4fa0e INFO Close port 0xc000422500 server=eu2.prenet.diode.io:41046 ref=a\ufffdo\ufffd client= device=0x84c485c62cdd878ce795aa90f269f84b5ae4fa0e INFO Close port 0xc000422640 server=eu2.prenet.diode.io:41046 ref=\u0008\ufffdI7 client= device=0x84c485c62cdd878ce795aa90f269f84b5ae4fa0e INFO Close port 0xc0001a0140 server=eu2.prenet.diode.io:41046 ref=9g\ufffd\ufffd client=84c485c62cdd878ce795aa90f269f84b5ae4fa0e3967e4c5 device=0x84c485c62cdd878ce795aa90f269f84b5ae4fa0e INFO Open port 0xc0001a0280 server=eu2.prenet.diode.io:41046 ref=\u000eS@ client= device=0x84c485c62cdd878ce795aa90f269f84b5ae4fa0e INFO Open port 0xc000422000 server=eu2.prenet.diode.io:41046 ref=qqf\ufffd client= device=0x84c485c62cdd878ce795aa90f269f84b5ae4fa0e INFO Close port 0xc0001a0280 server=eu2.prenet.diode.io:41046 ref=\u000eS@ client=84c485c62cdd878ce795aa90f269f84b5ae4fa0e0e532a40 device=0x84c485c62cdd878ce795aa90f269f84b5ae4fa0e INFO Open port 0xc000140320 server=eu2.prenet.diode.io:41046 ref=\u001b\u0018g\u0003 client= device=0x84c485c62cdd878ce795aa90f269f84b5ae4fa0e INFO Close port 0xc000422000 server=eu2.prenet.diode.io:41046 ref=qqf\ufffd client=84c485c62cdd878ce795aa90f269f84b5ae4fa0e717166d7 device=0x84c485c62cdd878ce795aa90f269f84b5ae4fa0e INFO Close port 0xc000140320 server=eu2.prenet.diode.io:41046 ref=\u001b\u0018g\u0003 client=84c485c62cdd878ce795aa90f269f84b5ae4fa0e1b186703 device=0x84c485c62cdd878ce795aa90f269f84b5ae4fa0e INFO Open port 0xc000140320 server=eu2.prenet.diode.io:41046 ref=D\ufffd\ufffd: client= device=0x84c485c62cdd878ce795aa90f269f84b5ae4fa0e ERROR Failed to connect local: dial tcp 192.168.3.65:80: i/o timeout server=eu2.prenet.diode.io:41046 INFO Open port 0xc0001a0140 server=eu2.prenet.diode.io:41046 ref=%\ufffd\nU client= device=0x84c485c62cdd878ce795aa90f269f84b5ae4fa0e INFO Open port 0xc000422000 server=eu2.prenet.diode.io:41046 ref=\u0006z\ufffdd client= device=0x84c485c62cdd878ce795aa90f269f84b5ae4fa0e ERROR Failed to connect local: dial tcp 192.168.3.65:80: i/o timeout server=eu2.prenet.diode.io:41046 INFO Open port 0xc000140960 server=eu2.prenet.diode.io:41046 ref=\u0013\ufffdS+ client= device=0x84c485c62cdd878ce795aa90f269f84b5ae4fa0e ERROR Failed to connect local: dial tcp 192.168.3.65:80: i/o timeout server=eu2.prenet.diode.io:41046 INFO Close port 0xc000140320 server=eu2.prenet.diode.io:41046 ref=D\ufffd\ufffd: client= device=0x84c485c62cdd878ce795aa90f269f84b5ae4fa0e INFO Close port 0xc0001a0140 server=eu2.prenet.diode.io:41046 ref=%\ufffd\nU client=84c485c62cdd878ce795aa90f269f84b5ae4fa0e25ea0a55 device=0x84c485c62cdd878ce795aa90f269f84b5ae4fa0e INFO Close port 0xc000422000 server=eu2.prenet.diode.io:41046 ref=\u0006z\ufffdd client= device=0x84c485c62cdd878ce795aa90f269f84b5ae4fa0e INFO Close port 0xc000140960 server=eu2.prenet.diode.io:41046 ref=\u0013\ufffdS+ client= device=0x84c485c62cdd878ce795aa90f269f84b5ae4fa0e

jimthedj65 commented 3 years ago

I tried running this from a pi and got the error on the html side Header fields are too long for server to interpret on the pi side

INFO Diode Client version : v0.10.3 23 Feb 2021 INFO Client address : 0x4e3610f4087c2e9ff147dfcbe00940dfffdd06c4 INFO Fleet address : 0x6000000000000000000000000000000000000000 INFO Connected to host: eu2.prenet.diode.io:41046, validating... INFO Network is validated, last valid block: 1530064 0x000059c13ec04987d5782320190c733f49b7b84e0e293c0d175bee516164dde5 INFO INFO HTTP Gateway Enabled : http://0x4e3610f4087c2e9ff147dfcbe00940dfffdd06c4.diode.link/ INFO Port : INFO Port 192.168.x.xxx:80 : 80 public any INFO Open port 0x11b6360 server=eu2.prenet.diode.io:41046 ref=\t.\ufffd\ufffd client= device=0x84c485c62cdd878ce795aa90f269f84b5ae4fa0e INFO Open port 0x1078720 server=eu2.prenet.diode.io:41046 ref=\u0003!n\u0019 client= device=0x84c485c62cdd878ce795aa90f269f84b5ae4fa0e INFO Close port 0x11b6360 server=eu2.prenet.diode.io:41046 ref=\t.\ufffd\ufffd client=84c485c62cdd878ce795aa90f269f84b5ae4fa0e092e9cbc device=0x84c485c62cdd878ce795aa90f269f84b5ae4fa0e INFO Close port 0x1078720 server=eu2.prenet.diode.io:41046 ref=\u0003!n\u0019 client=84c485c62cdd878ce795aa90f269f84b5ae4fa0e03216e19 device=0x84c485c62cdd878ce795aa90f269f84b5ae4fa0e

jimthedj65 commented 2 years ago

This is an esp limitation and was resolved by updating the header size in the chip.