LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Cannot create listening port (https://www.linuxquestions.org/questions/linux-newbie-8/cannot-create-listening-port-452093/)

Braynid 06-06-2006 08:41 AM

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

Fadoksi 06-06-2006 12:08 PM

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) ?

Braynid 06-06-2006 12:19 PM

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.

Fadoksi 06-06-2006 03:33 PM

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.


All times are GMT -5. The time now is 04:07 PM.