Hyperledger Composer How to specify server name in composer connection profile

0 votes

When I specify orderer and peer host name (e.g. peer0.org1.example.com) in /etc/hosts file, "composer" command works.

But, if I specify server's IP address, it does not work.

$ composer network list -p hlfv1 -n info-share-bc -i PeerAdmin -s secret

✖ List business network info-share-bc
Error trying to ping. Error: Error trying to query chaincode. Error: Connect Failed

Command succeeded

This is a command example when I specify host name in /etc/hosts.

$ composer network list -p hlfv1 -n info-share-bc -i PeerAdmin -s secret

✔ List business network info-share-bc
name:       info-share-bc
models: 
  - org.hyperledger.composer.system
  - bc.share.info
 <snip>

Need help

Nov 14, 2018 in Blockchain by digger
• 26,740 points
901 views

1 answer to this question.

0 votes

To solve this problem you can use the hostnameOverride option in connection profile.

 "eventURL": "grpcs://<target-host>:17053", 
 "hostnameOverride": "peer0.org1.example.com",
answered Nov 14, 2018 by Omkar
• 69,220 points

Related Questions In Blockchain

0 votes
1 answer

How to solve EACCES:permission denied error in Hyperledger Composer?

It seems like there is no required ...READ MORE

answered Jul 11, 2018 in Blockchain by digger
• 26,740 points
2,435 views
0 votes
1 answer

How to solve "error trying install composer runtime" in Hyperledger composer?

I think the docker-compose tool is not ...READ MORE

answered Jul 17, 2018 in Blockchain by slayer
• 29,370 points
896 views
0 votes
1 answer

Hyperledger Sawtooth vs Quorum in concurrency and speed Ask

Summary: Both should provide similar reliability of ...READ MORE

answered Sep 26, 2018 in IoT (Internet of Things) by Upasana
• 8,620 points
1,451 views
+1 vote
1 answer

I am unable to change port of composer-rest-server. Please help!

Use full format for running a business ...READ MORE

answered Mar 27, 2018 in Blockchain by Christine
• 15,790 points
1,127 views
+1 vote
1 answer
0 votes
1 answer

How to get TimeStamps in Hyperledger Composer?

Here's an example that works with basic-sample-network network: asset SampleAsset ...READ MORE

answered Oct 26, 2018 in Blockchain by Omkar
• 69,220 points
1,338 views
0 votes
1 answer

HyperLedger Composer: Failed to load connector module “composer-connector-embedded” for connection profile “testprofile”

First, update your devDependencies in package.json "devDependencies": { ... "composer-admin": ...READ MORE

answered Nov 2, 2018 in Blockchain by Omkar
• 69,220 points
759 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP