LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

Rep: Reputation: 0
Question Scan for Local Open Ports


Hi,

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?

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

Rep: Reputation: 65
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.
Code:
sudo netstat -l -t -p
 
  


Reply


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 02:03 AM
Explaination of network scan ports. NuxIT Linux - Networking 1 06-17-2006 10:21 AM
can't scan from Open Office noBananas Linux - Software 2 05-30-2006 08:42 AM
Fedora Core 3, GRC port scan says ports arestealthed but responds to icmp ping IraB Linux - Security 7 12-09-2004 11:18 PM
scan port at 111 is open.... Qebex Linux - Security 5 09-21-2002 06:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:28 AM.

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