I know this question has been asked a several times but I have looked everywhere but I cant find a proper solution to it.
So I have a multichain which is running in my docker compose:
version: '2.1'
services:
# basenode:
# build: ./base
# stdin_open: true
# tty: true
masternode:
build: ./master
stdin_open: true
tty: true
ports:
- "7557:7557"
- "8002:8002"
expose:
- 7557
- 8002
environment:
CHAINNAME: MyChain
NETWORK_PORT: 7557
RPC_PORT: 8002
RPC_USER: multichainrpc
RPC_PASSWORD: mypassword
RPC_ALLOW_IP: 0.0.0.0/0.0.0.0
PARAM_TARGET_BLOCK_SIZE: target-block-time|30
PARAM_ANYONE_CAN_RECEIVE: anyone-can-receive|true
PARAM_ANYONE_CAN_SEND: anyone-can-send|true
PARAM_ANYONE_CAN_ISSUE: anyone-can-issue|true
PARAM_ANYONE_CAN_CONNECT: anyone-can-connect|true
PARAM_ANYONE_CAN_MINE: anyone-can-mine|true
slavenode:
build: ./node
stdin_open: true
tty: true
expose:
- 7557
- 8002
environment:
CHAINNAME: MyChain
NETWORK_PORT: 7557
RPC_PORT: 8002
RPC_USER: multichainrpc
RPC_PASSWORD: mypassword
RPC_ALLOW_IP: 0.0.0.0/0.0.0.0
MASTER_NODE: masternode
links:
- masternode
depends_on:
- masternode
explorernode:
build: ./explorer
stdin_open: true
tty: true
expose:
- 2750
- 7557
- 8002
environment:
CHAINNAME: MyChain
NETWORK_PORT: 7557
RPC_PORT: 8002
RPC_USER: multichainrpc
RPC_PASSWORD: mypassword
RPC_ALLOW_IP: 0.0.0.0/0.0.0.0
MASTER_NODE: masternode
links:
- masternode
depends_on:
- masternode
when i run my compose, it can see my chain running because it gives txn id, generating blocks, etc.
But now I have an app in my host machine, which is a windows 10 Azure VM. I want it to connect to my multichain which is running in my docker. (Mind it i have my ports mapped for my master node if u see the compose file above)
According to my understanding if I can connect to this chain from my host machine using multichain-cli, then I can use all those ip addresses and ports for my app too.
But I cannot connect to my multichain from the multichain-cli which im running from the command promt of my host machine. Where am I going wrong?
PS: If you need any other info. please feel free to ask.