<br><br>
<div><span class="gmail_quote">On 9/20/06, <b class="gmail_sendername">Bruno Wolff III</b> <<a href="mailto:bruno@wolff.to">bruno@wolff.to</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">On Wed, Sep 20, 2006 at 15:50:38 +0530,<br>Kaushal Shriyan <<a href="mailto:kaushalshriyan@gmail.com">kaushalshriyan@gmail.com
</a>> wrote:<br>><br>> I need my apache web server to listen to a particular port, On my box<br>> there are 100 of applications which uses port to run<br>><br>> My Query is how do i check for FREE PORTS on my box, is there any
<br>> utility where i can find FREE Ports and use it for my application(Apache Web<br>> Server)<br><br>This doesn't make much sense. If you need apache to listen on a particular<br>port then it needs to listen on that port and there isn't any reason to
<br>be checking other ports.<br>What you might want to do is see if anything else on the system is using<br>that port. Looking at /etc/services is a quick way to look for potential<br>conflicts. It will tell which ports are typically used by which services.
<br>You can also run netstat and look for sockets in a LISTEN state to see which<br>ones are actually being used on your system at a given time.<br><br>--<br>fedora-list mailing list<br><a href="mailto:fedora-list@redhat.com">
fedora-list@redhat.com</a><br>To unsubscribe: <a href="https://www.redhat.com/mailman/listinfo/fedora-list">https://www.redhat.com/mailman/listinfo/fedora-list</a><br></blockquote></div>
<div><br>The following will show you what ports are currently in use...</div>
<div> </div>
<div>netstat -a</div>
<div> </div>
<div>You probably want to grep the output for the port you are interested in. If the port is not listed, it is not in use.<br clear="all"><br>-- <br>Rob Anderson<br><a href="mailto:riznob@gmail.com">riznob@gmail.com</a> 
</div>