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=myemail@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=myemail@myDomain.com"
Might it be the port number of the IIS?
Many thanks in advance

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,596 questions
C#
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.
10,996 questions
0 comments No comments
{count} votes

Accepted answer
  1. Lex Li (Microsoft) 5,582 Reputation points Microsoft Employee
    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.

    1 person found this answer helpful.
    0 comments No comments

7 additional answers

Sort by: Most helpful
  1. Cheong00 3,476 Reputation points
    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.

    0 comments No comments

  2. 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.

    0 comments No comments

  3. Duane Arnold 3,211 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.

    0 comments No comments

  4. 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"


Your answer

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