Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Authorization OAUTH2, unknown receiving server port for access token
#3
(01-15-2020, 12:38 PM)IndyBeginner Wrote: I am wondering, if is it possible to set that the server will choose the first free port or there is no way to do that and I need to know that the port I set is free?

If the server's Bindings collection is populated before the server is activated, you can set each Binding.Port in the collection as desired.

If the Bindings collection is not populated before activating the server, you can set the server's DefaultPort as desired. When activated, the server will create a default Binding in the collection for you, using the DefaultPort for the Binding.Port.

Setting a given Binding.Port to 0 will let the server ask the OS to pick an available free port for you. Once the server is activated, you can then look at that Binding.Port to see which port it is actually using.

Reply


Messages In This Thread
RE: Authorization OAUTH2, unknown receiving server port for access token - by rlebeau - 01-15-2020, 10:58 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)