This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin Cookbook and have Ken Kousen on-line!
See this thread for details.
Win a copy of Kotlin Cookbook this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Knute Snortum
  • Henry Wong
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Frits Walraven
  • Joe Ess
  • salvin francis

Is there any default port for IIS like 8080 for tomcat?

 
Ranch Hand
Posts: 1282
8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I know that in tomcat when we run any application , by default it runs on 8080 port. However when I run a .net application , the port it shows on localhost has not been a fixed one. Is there no default port like 8080 for tomcat? Also in tomcat the logs comes in tomcat catalina lib.Where do I see the logs in case of .net application which runs on IIS?

thanks
 
Saloon Keeper
Posts: 5986
154
Android Mac OS X Firefox Browser VI Editor Tomcat Server Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here you go.
 
Monica Shiralkar
Ranch Hand
Posts: 1282
8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I had already checked this but when I run a .net application by clicking ctrl F5 on visual Studio it opens http://localhost:44844 like in tomcat it runs http://localhost:8080
 
Tim Moores
Saloon Keeper
Posts: 5986
154
Android Mac OS X Firefox Browser VI Editor Tomcat Server Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's possible Visual Studio does something different for its internal server. Does it not have documentation?
 
Monica Shiralkar
Ranch Hand
Posts: 1282
8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I so far checked it looks like no fixed number different for different people trying to run it. But for all cases it is a 5 digit number. I will check further. Thanks
 
Saloon Keeper
Posts: 11022
244
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The port number passed to IIS Express by Visual Studio is configured in the project properties.I think it's under the "Web" tab or something similar.
 
Saloon Keeper
Posts: 21478
144
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It has been many, many years since I last worked with IIS, but unless it has radically changed, IIS, like Apache and other industry-standard webservers uses ports 80 and 443 by default. Those are the officially-designated Well-Known port IDs for HTTP and HTTPS, respectively and those are the port IDs hard-coded into almost all Internet client programs. Meaning that if your URL doesn't include an explicit port, that's what the client will target. https://coderanch.com and https://coderanch.com:80 mean the same thing.

That would be what you'd get when running IIS as a Windows Service. As others have indicated, it can be overridden. And in fact, if a program like Visual Studio launches IIS, it's almost mandatory to override, since ports 80 and 443 are not available to any app that doesn't run as administrator.

I'd follow Stephan's advice. He evidently has worked with IIS more recently than I have. In my case, it hasn't been since the last millenium.
 
Tim Holloway
Saloon Keeper
Posts: 21478
144
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Monica Shiralkar wrote:Also in tomcat the logs comes in tomcat catalina lib.Where do I see the logs in case of .net application which runs on IIS?



I'm not sure what "the logs comes in tomcat catalina lib". The actual logs for Tomcat are normally written to TOMCAT_HOME/logs, although catalina.out is actually just a capture of the Tomcat JVM's stdout, so if you use something other than the standard Tomcat mechanisms, you may have to deal with that one yourself.

In IIS, logging is done to the Windows Event Manager.

But in Tomcat, only Tomcat's own logs are handled automatically. The webapps are each responsible for their own logging (or lack thereof), including determining where to write their logs (which has to be some place that Tomcat itself can write to). The exception to that is the servlet.log() method, which isn't much used. That one writes to Tomcat stdout (catalina.out). But it's pretty useless, so most people use real loggers like log4j or Apache commons logging, or JULI logging.

What IIS apps are supposed to do for logging, I don't know, but I would not be surprised if they shouldn't be using Windows Event Logging.
 
Monica Shiralkar
Ranch Hand
Posts: 1282
8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes I had seen the port configured in project properties and that it can be changed. I was thinking that the port will be configured to some default 5 digit number. Eg  44344  and it can be changed to some other port but this 5 digit default port is different for different people that is something I didn't understand. I am not talking about the port which is changed to but talking about the default port (before changing it from properties)
 
Story like this gets better after being told a few times. Or maybe it's just a tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!