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

+1 vote

I want to change the port of the composer-rest-server and I'm using the -p flag but the terminal says that I am missing a parameter-

Input:

composer-rest-server -p 8919

Output:

Missing parameter. Please run composer-rest-server -h to see usage details 

And when I type the -h flag:

-p, --port          The port to serve the REST API on  [number]

So, how do I run the composer-rest-server on a different port from 3000?

Mar 27, 2018 in Blockchain by Perry
• 17,100 points

edited Mar 27, 2018 by Perry 1,087 views

1 answer to this question.

+1 vote
Best answer

Use full format for running a business network in a different port using this:

composer-rest-server -c admin@sample-network -p 8919

or you can add more parameter like authentication, multiple user support etc

composer-rest-server -c admin@sample-network -p 8919 -a false -m true

Know all parameters meaning by using this command

 composer-rest-server --help
answered Mar 27, 2018 by Christine
• 15,790 points

selected Aug 3, 2018 by Omkar

Related Questions In Blockchain

+4 votes
2 answers

I am unable to connect Ganache with Truffle/Npm Dev server. Pls help.

The issue is at CurrentProvider. Give the url ...READ MORE

answered Mar 26, 2018 in Blockchain by Perry
• 17,100 points

edited Oct 11, 2018 by Omkar 2,592 views
0 votes
1 answer

How to extend Composer rest Server ?

 It looks like you want to query ...READ MORE

answered Sep 20, 2018 in Blockchain by Perry
• 17,100 points
813 views
0 votes
1 answer

I am not able to change array elements globally

Remove the constant modifier from getArray(). constant functions do not write state ...READ MORE

answered Oct 9, 2018 in Blockchain by Omkar
• 69,230 points
624 views
0 votes
1 answer

How to use different network cards for multiple composer rest server users?

You are getting the same network card in ...READ MORE

answered Dec 6, 2018 in Blockchain by Perry
• 17,100 points
1,170 views
0 votes
1 answer

Invalid Batch or signature in Savtooth

This will solve your problem import org.apache.commons.codec.binary.Hex; Transaction txn ...READ MORE

answered Aug 1, 2018 in Blockchain by digger
• 26,740 points
911 views
+1 vote
1 answer
0 votes
1 answer

Any security issues in migrating sensitive data in CouchDB to hyperledger composer

Hyperledger Composer and the underlying Hyperledger Fabric ...READ MORE

answered Aug 3, 2018 in Blockchain by Johnathon
• 9,090 points
700 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,399 views
+1 vote
1 answer

Unable to send payment using API. Please help.

Firstly, check your passwords, your API code and your wallet ...READ MORE

answered Apr 3, 2018 in Blockchain by Christine
• 15,790 points
1,083 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