Re: issue with connecting two local peers
gogo gogo <[email protected]> Sat, 14 Dec 2024 21:16:22 +0100
| Newsgroups | gmane.network.gnunet.general |
|---|---|
| Message-ID | <CAHYwvPjRhY=8TxUmEGZV2+Kura4fbY7ETVnMiX5w26uZoom6+A@mail.gmail.com> |
--000000000000b8832b0629409f7d Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I really would love to see a configuration file example please! - for example for the socket, do you recommend: UNIXPATH =3D /tmp/gnunet-service-transport.sock but then for which peer(s) - I doubt for the second point - Could you tell me how please? - I am confused - I have already set http://localhost:8080/ . Should I do same for the second peers peer2.conf please? Le sam. 14 d=C3=A9c. 2024 =C3=A0 21:01, gogo gogo <[email protected]> a = =C3=A9crit : > Hi maxime, > > I think there is already an official doc I was referring to > https://docs.gnunet.org/latest/developers/tutorial.html#how-to-connect-ma= nually > and this is where I am stuck. > > Could you provide a configuration file example please? > > Le sam. 14 d=C3=A9c. 2024 =C3=A0 18:12, Maxime Devos <maximedevos@telenet= .be> a > =C3=A9crit : > >> If you wish to start multiple peers on one machine, you probably need to >> adjust the configuration more. >> >> >> >> - If things are still the same as when I last worked with this (and >> IIRC), some things are _*outside*_ GNUNET_HOME. There are some >> sockets =E2=80=A6 somewhere (I think under /tmp? Not sure where.). So= , GNUnet might >> be getting confused from this. >> - Maybe wait a few seconds after doing =E2=80=98gnunet-arm [=E2=80=A6= ] -s=E2=80=99, instead >> of the &&. Maybe the TCP or UDP transports haven=E2=80=99t choosen a = port yet? I=E2=80=99m >> not sure this is how it works though =E2=80=93 not familiar with this= , this is >> speculation. >> - I=E2=80=99m not sure if UDP ports are choosen automatically. If the= y >> aren=E2=80=99t, then there might be some kind of port conflic. In cas= e of UDP >> (unidirectional), then the peers would be unable to verify each other= s >> existence. >> - Even if they are choosen automatically, this automation probably >> had NAT-punching in mind, not this. >> - For an isolated network, I think you also need to tell GNUnet to >> bind to =E2=80=98localhost=E2=80=99 instead of everything. >> >> >> >> It would be nice to have official documentation on setting up this kind >> isolated one-machine, multiple peers network. It seems quite convenient = for >> safely testing things out. (Though for full isolation, a =E2=80=98unix= =E2=80=99 transport >> would be needed.) >> >> >> >> Best regards, >> Maxime Devos >> > --000000000000b8832b0629409f7d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><pre>I really would love to see a configuration file examp= le please!<br></pre><pre><br>- for example for the socket, do you recommend= :<br>UNIXPATH =3D /tmp/gnunet-service-transport.sock<br></pre><pre>but then= for which peer(s)<br></pre><pre>- I doubt for the second point<br></pre><p= re>- Could you tell me how please?<br></pre><pre>- I am confused<br></pre><= pre>- I have already set <a href=3D"http://localhost:8080/" target=3D"_blan= k">http://localhost:8080/</a> . Should I do same for the second peers peer2= .conf please?</pre></div><br><div class=3D"gmail_quote gmail_quote_containe= r"><div dir=3D"ltr" class=3D"gmail_attr">Le=C2=A0sam. 14 d=C3=A9c. 2024 =C3= =A0=C2=A021:01, gogo gogo <<a href=3D"mailto:[email protected]">gogo2= [email protected]</a>> a =C3=A9crit=C2=A0:<br></div><blockquote class=3D"g= mail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204= ,204,204);padding-left:1ex"><div dir=3D"ltr"><div>Hi maxime,</div><div><br>= </div><div>I think there is already an official doc I was referring to <a h= ref=3D"https://docs.gnunet.org/latest/developers/tutorial.html#how-to-conne= ct-manually" target=3D"_blank">https://docs.gnunet.org/latest/developers/tu= torial.html#how-to-connect-manually</a> and this is where I am stuck.</div>= <div><br></div><div>Could you provide a configuration file example please?<= br></div></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gma= il_attr">Le=C2=A0sam. 14 d=C3=A9c. 2024 =C3=A0=C2=A018:12, Maxime Devos <= ;<a href=3D"mailto:[email protected]" target=3D"_blank">maximedevos@te= lenet.be</a>> a =C3=A9crit=C2=A0:<br></div><blockquote class=3D"gmail_qu= ote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,20= 4);padding-left:1ex"><div><div lang=3D"NL-BE"><div><p class=3D"MsoNormal">I= f you wish to start multiple peers on one machine, you probably need to adj= ust the configuration more. </p><p class=3D"MsoNormal"><u></u>=C2=A0<u></u>= </p><ul style=3D"margin-top:0cm" type=3D"disc"><li style=3D"margin-left:0cm= ">If things are still the same as when I last worked with this (and IIRC), = some things are _<i>outside</i>_ GNUNET_HOME. There are some sockets =E2=80= =A6 somewhere (I think under /tmp? Not sure where.). So, GNUnet might be ge= tting confused from this.</li><li style=3D"margin-left:0cm">Maybe wait a fe= w seconds after doing =E2=80=98gnunet-arm [=E2=80=A6] -s=E2=80=99, instead = of the &&. Maybe the TCP or UDP transports haven=E2=80=99t choosen = a port yet? I=E2=80=99m not sure this is how it works though =E2=80=93 not = familiar with this, this is speculation.</li><li style=3D"margin-left:0cm">= I=E2=80=99m not sure if UDP ports are choosen automatically. If they aren= =E2=80=99t, then there might be some kind of port conflic. In case of UDP (= unidirectional), then the peers would be unable to verify each others exist= ence.</li><li style=3D"margin-left:0cm">Even if they are choosen automatica= lly, this automation probably had NAT-punching in mind, not this.</li><li s= tyle=3D"margin-left:0cm">For an isolated network, I think you also need to = tell GNUnet to bind to =E2=80=98localhost=E2=80=99 instead of everything.</= li></ul><p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p><p class=3D"MsoNorma= l">It would be nice to have official documentation on setting up this kind = isolated one-machine, multiple peers network. It seems quite convenient for= safely testing things out. (Though for full isolation, a =E2=80=98unix=E2= =80=99 transport would be needed.)</p><p class=3D"MsoNormal"><u></u>=C2=A0<= u></u></p><p class=3D"MsoNormal">Best regards,<br>Maxime Devos<u></u><u></u= ></p></div></div></div></blockquote></div> </blockquote></div> --000000000000b8832b0629409f7d--