mirror of
https://github.com/logos-messaging/docs.waku.org.git
synced 2026-01-08 15:53:08 +00:00
1 line
6.3 KiB
JavaScript
1 line
6.3 KiB
JavaScript
"use strict";(self.webpackChunkwaku_guide=self.webpackChunkwaku_guide||[]).push([[8425],{28453:(e,n,s)=>{s.d(n,{R:()=>o,x:()=>t});var d=s(96540);const i={},r=d.createContext(i);function o(e){const n=d.useContext(r);return d.useMemo(function(){return"function"==typeof e?e(n):{...n,...e}},[n,e])}function t(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:o(e.components),d.createElement(r.Provider,{value:n},e.children)}},31694:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>a,contentTitle:()=>t,default:()=>u,frontMatter:()=>o,metadata:()=>d,toc:()=>l});const d=JSON.parse('{"id":"guides/nwaku/find-node-address","title":"Find Your Node Address","description":"When starting the node, nwaku will display all the public listening and discovery addresses at the INFO log level.","source":"@site/docs/guides/nwaku/find-node-address.md","sourceDirName":"guides/nwaku","slug":"/guides/nwaku/find-node-address","permalink":"/guides/nwaku/find-node-address","draft":false,"unlisted":false,"editUrl":"https://github.com/waku-org/docs.waku.org/tree/develop/docs/guides/nwaku/find-node-address.md","tags":[],"version":"current","lastUpdatedAt":null,"frontMatter":{"title":"Find Your Node Address","hide_table_of_contents":true},"sidebar":"guides","previous":{"title":"Configure Peer Discovery","permalink":"/guides/nwaku/configure-discovery"},"next":{"title":"Node Configuration Methods","permalink":"/guides/nwaku/config-methods"}}');var i=s(74848),r=s(28453);const o={title:"Find Your Node Address",hide_table_of_contents:!0},t=void 0,a={},l=[{value:"Listening addresses",id:"listening-addresses",level:2},{value:"Discoverable ENR addresses",id:"discoverable-enr-addresses",level:2},{value:"ENR for DNS discovery",id:"enr-for-dns-discovery",level:3},{value:"ENR for Discv5",id:"enr-for-discv5",level:3}];function c(e){const n={a:"a",admonition:"admonition",code:"code",h2:"h2",h3:"h3",p:"p",pre:"pre",...(0,r.R)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.admonition,{type:"info",children:(0,i.jsxs)(n.p,{children:["When starting the node, ",(0,i.jsx)(n.code,{children:"nwaku"})," will display all the public listening and discovery addresses at the ",(0,i.jsx)(n.code,{children:"INFO"})," log level."]})}),"\n",(0,i.jsxs)(n.p,{children:["You can find the addresses of a running node through its logs or by calling the ",(0,i.jsx)(n.a,{href:"https://waku-org.github.io/waku-rest-api/#get-/debug/v1/info",children:"Get node info"})," endpoint of the ",(0,i.jsx)(n.a,{href:"https://waku-org.github.io/waku-rest-api/",children:"REST API"}),"."]}),"\n",(0,i.jsx)(n.h2,{id:"listening-addresses",children:"Listening addresses"}),"\n",(0,i.jsxs)(n.p,{children:["Look for the log entry that begins with ",(0,i.jsx)(n.code,{children:"Listening on"}),", for example:"]}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-txt",metastring:'title="Nwaku Log Output"',children:'INF 2023-06-15 16:09:54.448+01:00 Listening on topics="waku node" tid=1623445 file=waku_node.nim:922 full=[/ip4/0.0.0.0/tcp/60000/p2p/16Uiu2HAmQCsH9V81xoqTwGuT3qwkZWbwY1TtTQwpr3DjHU2TSwMn][/ip4/0.0.0.0/tcp/8000/ws/p2p/16Uiu2HAmQCsH9V81xoqTwGuT3qwkZWbwY1TtTQwpr3DjHU2TSwMn]\n'})}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-shell",children:"# Listening TCP transport address\n/ip4/0.0.0.0/tcp/60000/p2p/16Uiu2HAmQCsH9V81xoqTwGuT3qwkZWbwY1TtTQwpr3DjHU2TSwMn\n\n# Listening WebSocket address\n/ip4/0.0.0.0/tcp/8000/ws/p2p/16Uiu2HAmQCsH9V81xoqTwGuT3qwkZWbwY1TtTQwpr3DjHU2TSwMn\n"})}),"\n",(0,i.jsx)(n.h2,{id:"discoverable-enr-addresses",children:"Discoverable ENR addresses"}),"\n",(0,i.jsxs)(n.p,{children:["A ",(0,i.jsx)(n.code,{children:"nwaku"})," node can encode its addressing information in an ",(0,i.jsx)(n.a,{href:"https://eips.ethereum.org/EIPS/eip-778",children:"Ethereum Node Record (ENR)"}),"."]}),"\n",(0,i.jsx)(n.h3,{id:"enr-for-dns-discovery",children:"ENR for DNS discovery"}),"\n",(0,i.jsxs)(n.p,{children:["Look for the log entry that begins with ",(0,i.jsx)(n.code,{children:"DNS: discoverable ENR"}),", for example:"]}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-txt",metastring:'title="Nwaku Log Output"',children:'INF 2023-06-15 16:09:54.448+01:00 DNS: discoverable ENR topics="waku node" tid=1623445 file=waku_node.nim:923 enr=enr:-Iu4QBKYj8Ovxwz4fIalxZ_1a8dOCU2WC-1LQrcBCCb4Np93f9-UuSZXn3vagJL1S3k3hwRYfOp3JSbW7_VqwtqMIeMBgmlkgnY0gmlwhAAAAACJc2VjcDI1NmsxoQOrmyV59dAzY4ZKrvrj32VOoZbLby8dCKFnXnqhIdQ0NYN0Y3CC6mCFd2FrdTIB\n'})}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-shell",children:"# ENR the node addresses are encoded in\nenr:-Iu4QBKYj8Ovxwz4fIalxZ_1a8dOCU2WC-1LQrcBCCb4Np93f9-UuSZXn3vagJL1S3k3hwRYfOp3JSbW7_VqwtqMIeMBgmlkgnY0gmlwhAAAAACJc2VjcDI1NmsxoQOrmyV59dAzY4ZKrvrj32VOoZbLby8dCKFnXnqhIdQ0NYN0Y3CC6mCFd2FrdTIB\n"})}),"\n",(0,i.jsx)(n.h3,{id:"enr-for-discv5",children:"ENR for Discv5"}),"\n",(0,i.jsxs)(n.p,{children:["Look for the log entry that begins with ",(0,i.jsx)(n.code,{children:"Discv5: discoverable ENR"}),", for example:"]}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-txt",metastring:'title="Nwaku Log Output"',children:'INF 2023-06-15 16:09:54.448+01:00 Discv5: discoverable ENR topics="waku node" tid=1623445 file=waku_node.nim:924 enr=enr:-IO4QDxToTg86pPCK2KvMeVCXC2ADVZWrxXSvNZeaoa0JhShbM5qed69RQz1s1mWEEqJ3aoklo_7EU9iIBcPMVeKlCQBgmlkgnY0iXNlY3AyNTZrMaEDdBHK1Gx6y_zv5DVw5Qb3DtSOMmVHTZO1WSORrF2loL2DdWRwgiMohXdha3UyAw\n'})}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-shell",children:"# ENR the node addresses are encoded in\nenr:-IO4QDxToTg86pPCK2KvMeVCXC2ADVZWrxXSvNZeaoa0JhShbM5qed69RQz1s1mWEEqJ3aoklo_7EU9iIBcPMVeKlCQBgmlkgnY0iXNlY3AyNTZrMaEDdBHK1Gx6y_zv5DVw5Qb3DtSOMmVHTZO1WSORrF2loL2DdWRwgiMohXdha3UyAw\n"})}),"\n",(0,i.jsx)(n.admonition,{title:"Congratulations!",type:"tip",children:(0,i.jsxs)(n.p,{children:["You have successfully found the listening and discoverable addresses for your ",(0,i.jsx)(n.code,{children:"nwaku"})," node. Have a look at the ",(0,i.jsx)(n.a,{href:"/guides/nwaku/configure-discovery",children:"Configure Peer Discovery"})," guide to learn how to discover and connect with peers in the network."]})})]})}function u(e={}){const{wrapper:n}={...(0,r.R)(),...e.components};return n?(0,i.jsx)(n,{...e,children:(0,i.jsx)(c,{...e})}):c(e)}}}]); |