I'm running this: swarm \ --bzzaccount $ACCOUNT \ --password .ethereum/.password \ --bzzapi "" \ --lightnode

And when I curl from localhost I get a response: $ curl http://localhost:8500 Code: 200 Message: Swarm: Please request a valid ENS or swarm hash with the appropriate bzz scheme Timestamp: Sat, 08 Dec 2018 01:31:05 UTC

But when I curl externally: $ curl http://otherhost:8500 curl: (7) Failed to connect to localhost port 8500: Connection refused

Running lsof reveals this about the port: $ lsof -i TCP | grep 8500 swarm 9 root 30u IPv4 140650 0t0 TCP localhost:8500 (LISTEN)

I'm pretty sure it should be instead of localhost but I'm not sure if that's really an issue.

I've confirmed other applications running on the host can expose ports and I can connect to them no problem. Its specifically swarm.

Can anyone give me an example of the commands they are running to get swarm to work right? My goal is to have this running inside a private network and have other machines in the network control and communicate with it so I don't need it to have protected ports.

EDIT: minimal, final form swarm \ --bzzaccount $ACCOUNT \ --password .ethereum/.password \ --httpaddr "" \ --lightnode


Add –httpaddr in command line to specify network interface. –httpaddr "" should solve this.

| improve this answer | |
  • And -bzzport to specify a different port, if you need. – lash Dec 8 '18 at 9:11
  • You know, I swear I tried this 100 times and it didn't work but... it works. So apparently I just needed you to answer this question first :D It may have been the quotes. – justin.m.chase Dec 8 '18 at 16:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.