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,020 points

edited Mar 27, 2018 by Perry 280 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,020 points

edited Oct 11, 2018 by Omkar 312 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,020 points
86 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
• 67,460 points
18 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 5, 2018 in Blockchain by Perry
• 17,020 points
358 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
• 27,640 points
68 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,080 points
126 views
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
133 views