Archive

Posts Tagged ‘Server’

How to find ports that are used in a windows machine?

September 10th, 2010 No comments

From time to time you might need to find all the ports that are used by other applications in your machine. Recently, I was installing a web server and I saw that the default port was already taken by some other application. There are many tools in market that will allow you to monitor and scan ports, but if you are simply looking to find available ports in a windows desktop or laptop you can can take advantage of the “netstat” tool provided with the windows OS.

Open command prompt and type
netstat -an
This will display all connections and listening ports in numerical form. If you have many ports open this will be a rather long list.



If you looking for a specific port, you can search inside the results provided by netstat. In the example below I am looking for all ports starting with port 80.
netstat -an | find “80”
scrn_netstat_findport_techthinking



If you want to be a little more specific, you can search search inside the results provided by the previous command. In the example below I am looking for all ports starting with port 80 and in listening status.
netstat -an |find /i “listening” | find “80”
scrn_netstat_findport_listening_techthinking

Share
Categories: Tech Tips Tags: ,

How to increase server timeout in eclipse?

February 4th, 2010 No comments

If you are running JBOSS or other servers within eclipse, and your application takes more than 50 seconds to launch, then you might see a similar exception – “Server JBOSS was unable to start within 50 seconds. If the server requires more time try increasing the timeout in the server editor”

To fix this timeout in eclipse (Galilieo), go to Window -> Show View -> Servers -> Click on server name -> Increase start timeout.
eclipse_server_view

If you are using an older eclipse build (Europa or below), then go to Window -> Preferences -> Server

Share
Categories: Tech Tips Tags: , ,