I need to find out the port number of my ASP.NET application. It is hosted by an IIS and I need to determine the port number (e.g. "7535" in example "http://test.com:7535"). Preferably I need to determine this port in the program.cs file of the ASP.NET project.
Is there any opportunity?
Thank you very uh and best regards.