Did you know LQ has a Linux Hardware Compatibility List?
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!


LinkBack Search this Thread
Old 11-05-2008, 06:03 AM   #1
LQ Newbie
Registered: Aug 2008
Posts: 25

Rep: Reputation: 15
how to check if port is active?

Hi, guys. I am in trouble. I am getting this annoying error

Error LInux 111 :connection refused

while i am trying to connect through port 1521.

I disabled firewall, but it doesn't help. How can I check if my port is not blocked somehow?

Thanks in advance.
Old 11-05-2008, 06:21 AM   #2
Registered: Jun 2008
Location: India
Posts: 109

Rep: Reputation: 15
Use the command netstat to which ports are active and connected.

You can give netstat | grep xxx based on your usage.

Old 11-05-2008, 06:27 AM   #3
LQ Newbie
Registered: Aug 2008
Posts: 25

Original Poster
Rep: Reputation: 15
i tried netstat | grep 1521 got:
getname info failed.

As i unerstand my port 1521 is not active, how to activate it?
Old 11-05-2008, 11:16 PM   #4
Registered: Jun 2008
Location: India
Posts: 109

Rep: Reputation: 15

We should add the entry of that port in iptables.

Try iptables -h

Old 11-06-2008, 07:15 AM   #5
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,231
Blog Entries: 5

Rep: Reputation: 189Reputation: 189
what service are you trying to connect to on port 1521 (Oracle ) ?

a port won't just be open on it's own, is the service running ?

ps ax | grep oracle

netstat -alnp | grep 1521


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
active ftp port iptables problem peterb Fedora 9 06-15-2008 01:42 AM
how to check active sendmail user on linux ahpin Linux - Server 2 11-15-2006 06:31 PM
Bash: check pid for active process (FreeBSD) Harpune Programming 2 05-16-2006 01:33 PM
Strategy in PHP to check the number of active connections? vharishankar Programming 5 07-19-2005 08:14 AM
Check active /dev/sg* Devices carma Linux - Hardware 2 01-15-2005 12:17 PM

All times are GMT -5. The time now is 01:18 AM.

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 @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration