LinuxQuestions.org
Register a domain and help support LQ
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 06-06-2006, 08:41 AM   #1
Braynid
Member
 
Registered: May 2006
Location: Romania
Distribution: CentOS
Posts: 140

Rep: Reputation: 15
Cannot create listening port


Hello,
I have a Ubuntu RC 6.06 server installation on my machine. So i run for a friend, on this machine, a IRC bouncer and a IRC bot, these are two scripts that stay connected to the IRC network and do some stuff, the thing is that they worked until now just fine. But today when i checked it out i get the 'Cannot create listening port .. aborting' error from one of them (it uses prot 31338) and the other one says 'Connecting to eu.undernet.org:6667 timed out!' (port 6667 as you can see).
The ssh is ok but i don't get it why the other scripts don't work anymore. The fact that both of them cannot connect makes me think it's a problem with the ports on my computer, i tried to reinstall them (compile+configure)
So i really don't know what to check, i haven't install anything new lately so...

Thanks
 
Old 06-06-2006, 12:08 PM   #2
Fadoksi
Member
 
Registered: Apr 2006
Location: Finland
Distribution: Ubuntu, Gentoo, Debian
Posts: 88

Rep: Reputation: 15
Try writing "netstat -pantu" (without quotes of course and as root ) to see if something is already listening on 31338.

Btw. is your ssh on the default port (22) ?
 
Old 06-06-2006, 12:19 PM   #3
Braynid
Member
 
Registered: May 2006
Location: Romania
Distribution: CentOS
Posts: 140

Original Poster
Rep: Reputation: 15
So you are a genius Fadoksi. Here it is:


Code:
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 0.0.0.0:31338           0.0.0.0:*               LISTEN     3763/psybnc
tcp        0      1 82.76.84.224:53060      62.231.74.10:6667       SYN_SENT   3763/psybnc
tcp6       0      0 :::22                   :::*                    LISTEN     3680/sshd
tcp6       0    444 ::ffff:82.76.84.224:22 ::ffff:82.76.55.123:2874 ESTABLISHED3939/0
udp        0      0 0.0.0.0:68              0.0.0.0:*                          3311/dhclient3
Now how may i 'kill' this connections? I have tryed reboot but no use, the programs are set to run on start-up, i can alter that but i really wish for another way! Thanks man!!!

In other words, how can i 'kill' a proces when i know the PID ?

The ssh is ok, port 22. No matter.

Last edited by Braynid; 06-06-2006 at 12:39 PM.
 
Old 06-06-2006, 03:33 PM   #4
Fadoksi
Member
 
Registered: Apr 2006
Location: Finland
Distribution: Ubuntu, Gentoo, Debian
Posts: 88

Rep: Reputation: 15
I think its just writing (again as root )
Code:
kill pid
like for example kill 3763

About the ssh port I just meant that if its public (not ranged to specific ip's) it will get more brute-force attacks.

Last edited by Fadoksi; 06-06-2006 at 03:34 PM.
 
  


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
2 servers listening on port 80 possible? scrawl Linux - Software 1 03-13-2005 05:06 PM
Listening on a serial port calebsg Linux - General 2 10-13-2004 10:45 AM
ssh listening on port 22 sharpie Linux - Security 9 06-08-2004 03:28 PM
Apache listening on port.. well it isn't Newman_SCO Linux - Newbie 10 08-15-2003 12:32 PM
sendmail listening on port 25 dskny Linux - Software 14 08-12-2003 06:52 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration