Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 11-09-2006, 10:36 AM   #1
LQ Newbie
Registered: Nov 2006
Posts: 6

Rep: Reputation: 0
Question Scan for Local Open Ports


I am trying to find out if there is a way to scan my local linux machine for open ports. The reason I'm doing this is for setup of WebLogic, which requires a port number, and I'm not sure which ports on the machine are being used. (During the WebLogic install, it does not check to see if the port number you specify is in use, so if it fails to start the server on the requested port, you have to go through the installation process over again, or manually change some .xml files to the port number you wish to use.)

I'm in the process of creating an automated script that will install WebLogic for me, and should scan the machine for an open port number (within a specific range) and use the first open one it finds. Are there any linux packages out there that do this?

Old 11-09-2006, 11:19 AM   #2
Senior Member
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 63
You can use nmap to do this. If you want to check connectivity from the net (i.e. end-to-end test through your router / ISP), you can use one of the web-based services like Shields Up.

These methods will tell you if your machine responds on ports (they both use a sub-set of common ports by default. There is a command-line option to nmap which allows you to tell it to scan non-standard ports).

Another approach is to use netstat, e.g.
sudo netstat -l -t -p


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot Open Mail Server Ports 25, 110, and 220. Other Ports will open. Binxter Linux - Newbie 9 11-29-2007 03:03 AM
Explaination of network scan ports. NuxIT Linux - Networking 1 06-17-2006 11:21 AM
can't scan from Open Office noBananas Linux - Software 2 05-30-2006 09:42 AM
Fedora Core 3, GRC port scan says ports arestealthed but responds to icmp ping IraB Linux - Security 7 12-10-2004 12:18 AM
scan port at 111 is open.... Qebex Linux - Security 5 09-21-2002 07:29 PM

All times are GMT -5. The time now is 06:46 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration