I have a private tangle with 2 hornet nodes. I tried MAM using one of the devnet nodes by following the example on the official IOTA webpage. Can someone please tell me how do I publish and fetch messages from a private tangle?
I tried changing the const provider to 'http:// IP_of_node:port number' but this did not work.
Please find the screenshots of the code which I used for the devnet.enter image description here