Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
mac-port-forwarding-fails.txt
administrator@macinvalut:~$ docker stop komodo-dex
komodo-dex
administrator@macinvalut:~$ docker run -d --rm -p 14868:14868 -p 14869:14869 --name komodo-dex komodo-dex
479ca54e6d7c2a6d53cab4823b47c44ba5bd1cb712cfd4bed8b5cb79cccf96e6
administrator@macinvalut:~$ docker logs komodo-dex
ASSETCHAINS_SUPPLY 999999
MAX_MONEY 100006220417438 1000062.20417438
>>>>>>>>>> DEXP2P: p2p.14868 rpc.14869 magic.6378a12f 1668849967 999999 coins
call komodo_args.(komodod) NOTARY_PUBKEY.()
nMaxConnections 384
finished loading blocks DEXP2P
fAddressIndex.0/0 fSpentIndex.0/0
height.0 slowflag.1 possible.1 cmp.0
privkey for pubkey not found -> generate session specific privkey
DEX_pubkey.(019171341a0c5f30937cac6750bc09b91c10800b06b63903b7f8f7b1b56c8e7e20) sizeof DEX_globals 4059272
nLocalServices 4c000005 2
nLocalServices 4c000005 0, 0
administrator@macinvalut:~$ docker exec -it komodo-dex bash -l
dex@479ca54e6d7c:~$ # From inside the Docker instance the RPC port is accessible, returning a JSON-RPC error as expected..
dex@479ca54e6d7c:~$ curl -v http://127.0.0.1:14869/
* Trying 127.0.0.1...
* Connected to 127.0.0.1 (127.0.0.1) port 14869 (#0)
> GET / HTTP/1.1
> Host: 127.0.0.1:14869
> User-Agent: curl/7.47.0
> Accept: */*
>
< HTTP/1.1 405 Method Not Allowed
< Date: Mon, 17 Feb 2020 21:53:02 GMT
< Content-Length: 41
< Content-Type: text/html; charset=ISO-8859-1
<
* Connection #0 to host 127.0.0.1 left intact
dex@479ca54e6d7c:~$ logout
administrator@macinvalut:~$ # From the host the RPC port is not accessible, returning a bogus HTTP error.
administrator@macinvalut:~$ curl -v http://127.0.0.1:14869/
* Trying 127.0.0.1...
* TCP_NODELAY set
* Connected to 127.0.0.1 (127.0.0.1) port 14869 (#0)
> GET / HTTP/1.1
> Host: 127.0.0.1:14869
> User-Agent: curl/7.54.0
> Accept: */*
>
* Empty reply from server
* Connection #0 to host 127.0.0.1 left intact
curl: (52) Empty reply from server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment