What is "localhost:44313"

John Papaioannou 21 Reputation points
2021-01-26T09:13:57.213+00:00

I have an ASP.NET project working with IIS on Azure.

In Web.config I have

<add key="Url" value="https://localhost:44313" />

and there is a call in the C# code
WebRequest request = WebRequest.Create(sURL);

where sURL = "https://localhost:44313/api/User?email=******@myDomain.com"

Can someone please analyze the above and tell me what is

"https://localhost:44313"

and where I can find

"https://localhost:44313/api/User?email=******@myDomain.com"
Might it be the port number of the IIS?
Many thanks in advance

Developer technologies | C#
Developer technologies | C#

An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.

Developer technologies | ASP.NET Core | Other
0 comments No comments

Answer accepted by question author

Lex Li 6,042 Reputation points
2021-01-29T04:53:54.533+00:00

What you described can simply be a mistake by the original developer.

That developer might have a local site configured to serve "https://localhost:44313/...", but once you copy the same to another machine, there can be nothing there.

Only the original developer might give you some guidance.

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

7 additional answers

Sort by: Most helpful
  1. John Papaioannou 21 Reputation points
    2021-01-26T15:26:55.35+00:00

    Thanks Duane.

    My Web service is running and I access the SQL Server on Azure.

    When I do a "netstat -nab" on the local machine it replies with "The requested operation requires elevation"

    Was this answer helpful?


  2. Duane Arnold 3,216 Reputation points
    2021-01-26T13:40:16.727+00:00

    Localhost:44313 mean that a running web service on the local machine is listening on the port 44313 on local machine using the loopback ip. If the service is not running, then the port will not be opened so that netstat would detect it.

    Was this answer helpful?

    0 comments No comments

  3. John Papaioannou 21 Reputation points
    2021-01-26T09:49:06.103+00:00

    Thanks for the reply. It must be a port number for the IIS running on azure.

    I ran "netstat - nab" on the VM but could not identify 44313 in the output.

    Was this answer helpful?

    0 comments No comments

  4. cheong00 3,491 Reputation points Volunteer Moderator
    2021-01-26T09:33:37.663+00:00

    Either it's a port number for IIS, or it's IISExpress, or it's WCF listening on that port. There is no way to tell with so little information.

    You should try to find a system with this project working, and run "netstat -nab" and see what is listening on 44313 port.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.