ERRO : Error trying to connect to local peer: grpc: timed out trying to connect
<p>Unable to deploy chaincode example in my local hyperledger fabric.</p>

<p>system config: mac osx, Docker toolbox for mac</p>

<p>One validating peer is up and running using docker-compose.yaml </p>

<pre><code>membersrvc:
  image: hyperledger/fabric-membersrvc
  command: membersrvc
vp0:
  image: hyperledger/fabric-peer
  environment:
    - CORE_PEER_ADDRESSAUTODETECT=false
    - CORE_VM_ENDPOINT=http://172.17.0.1:2375
    - CORE_LOGGING_LEVEL=DEBUG
    - CORE_PEER_ID=vp0
    - CORE_SECURITY_ENROLLID=test_vp0
    - CORE_SECURITY_ENROLLSECRET=MwYpmSRjupbT
  links:
    - membersrvc
  command: sh -c "sleep 5; peer node start --peer-chaincodedev"
</code></pre>

<p>While deploying chaincode by running</p>

<pre><code>CORE_CHAINCODE_ID_NAME=mycc CORE_PEER_ADDRESS=0.0.0.0:30303 ./test
</code></pre>

<p>Its showing the error as <strong>[shim] ERRO : Error trying to connect to local peer: grpc: timed out trying to connect</strong></p>

<p>I tried replacing CORE_PEER_ADDRESS as suggested by <a href="https://stackoverflow.com/questions/38017236/getting-grpc-timeout-while-setting-up-hyperledger-development-environment-and-ne">grep timeout solution</a> but no change in error.</p>

<p><a href="https://i.stack.imgur.com/SuZfV.png" rel="nofollow noreferrer">First Validating peer output</a></p>

<p><a href="https://i.stack.imgur.com/izDmB.png" rel="nofollow noreferrer">Chaincode deployment error window</a></p>