bitcoinjs / regtest-server

A regtest server for bitcoinjs-lib testing
BSD 3-Clause "New" or "Revised" License
24 stars 24 forks source link

Error: connect ECONNREFUSED 127.0.0.1:8080 #9

Open drewstone opened 4 years ago

drewstone commented 4 years ago

I setup the docker instance as documented, it seems to be running, though I cannot connect or run my own tests.

junderw commented 4 years ago

you need to expose the ports via the -p option

ie.

docker run -p 8080:8080 xxxxx

this tells docker to bind the 8080 port of the container to the 8080 port of host's localhost

drewstone commented 4 years ago

Yea I did run with that too, same as the instructions, no?

On Sat, Oct 5, 2019 at 1:24 AM Jonathan Underwood notifications@github.com wrote:

you need to expose the ports via the -p option

ie.

docker run -p 8080:8080 xxxxx

this tells docker to bind the 8080 port of the container to the 8080 port of host's localhost

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/bitcoinjs/regtest-server/issues/9?email_source=notifications&email_token=ADELLF6IGNW5OLE7KL3ELOLQM67BZA5CNFSM4I5TANM2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEANBCGY#issuecomment-538579227, or mute the thread https://github.com/notifications/unsubscribe-auth/ADELLF5LN43ALS7WY33HOYLQM67BZANCNFSM4I5TANMQ .

junderw commented 4 years ago

run

sudo netstat -tulpn

and see if anything is listening to localhost 8080 and what process it is.

drewstone commented 4 years ago

With the full command I get: netstat: n: unknown or uninstrumented protocol With partial commands I do not see any localhost. If I try to run the docker run command again I get:

docker: Error response from daemon: driver failed programming external connectivity on endpoint goofy_jang (<NUM>): Bind for 0.0.0.0:8080 failed: port is already allocated.
junderw commented 4 years ago

Are you using the image from docker hub or did you build it yourself?

drewstone commented 4 years ago

I built it myself after cloning this repo.

junderw commented 4 years ago

try using the image from docker hub.

let me know what happens