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-


composer-rest-server -p 8919


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
• 16,450 points

edited Mar 27, 2018 by Perry 229 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
+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
• 16,450 points

edited Oct 11, 2018 by Omkar 241 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
• 16,450 points
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
• 66,910 points
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 5, 2018 in Blockchain by Perry
• 16,450 points
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
• 27,620 points
+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,070 points
0 votes
1 answer
+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

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.