|
|||||||
| Forums | Search Forums | Register | Forum Rules | Man Pages | Albums | FAQ | Members | Calendar | Search | Today's Posts | Mark Forums Read |
| IP Networking Learn TCP/IP, Internet Protocol, Routing, Routers, Network protocols in this UNIX and Linux forum. |
|
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Tcp ip port open but no such process (merged: Release A Port)
i want to kill a tcp connection by killing its pid
with netstat -an i got the tcp ip connection on port 5914 but when i type ps -a or ps-e there is not such process running on port 5914 is it possible that because i do not log on with proper user account i can not see that process running? |
| Sponsored Links | ||
|
|
#2
|
|||
|
|||
|
You need lsof to see pids and ports, generally speaking. Some OS have network artifacts in a per proc directory subtree like /proc/$PID/, so you can find the port there through an entry name. The ps can show you the command line, but that does not have to reveal any socket ports.
|
| Sponsored Links | ||
|
|
#3
|
|||
|
|||
|
I assume this to be the wrong forum.
Does your netstat provide the -p option? It will output the PID of the process, then. |
|
#4
|
|||
|
|||
|
i tried lsof.
i am not that much familiar with unix. when i type lsof it gives me lots of information in command line in a way that i can not see the previous commands that i typed (is there any command like /p that bring information page by page?) but in that given information from lsof i can not find neither the port i see the port 5914 nor its corresponding ip that i saw in netstat -a for that particular port. is there any way too release that port? ---------- Post updated at 01:15 PM ---------- Previous update was at 01:10 PM ---------- yes excuse me i post it on related forum |
| Sponsored Links | |
|
|
#5
|
|||
|
|||
|
Releasing a port
one of my system ports are busy and i dont know how to kill it
in netstat -a i see that the port are being used with a given ip but in ps -e i can not find that port being used by a process. how can i kill that process or release that port. |
| Sponsored Links | |
|
|
#6
|
|||
|
|||
|
Use the
less (or
more ) command : Code:
netstat -tlp | less
# netstat -tlpn
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.1.1:53 0.0.0.0:* LISTEN 1113/dnsmasq
^--- port ^--- PID |
| Sponsored Links | |
|
|
#7
|
|||
|
|||
|
Can't the gods move a thread to a new forum? It's just rdbms values!
|
| Sponsored Links | ||
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to list process connected to tcp port? | brichigo | UNIX for Advanced & Expert Users | 3 | 08-10-2010 05:31 AM |
| TCP port 0 usage | timmylita | IP Networking | 1 | 04-23-2010 06:47 PM |
| Unknown open port: "6881/tcp open bittorrent-tracker" found with nmap | Rledley | IP Networking | 0 | 03-19-2009 04:57 PM |
| close tcp port | raidzero | UNIX for Dummies Questions & Answers | 1 | 09-24-2008 02:16 PM |
| tcp problem with port | lopez | IP Networking | 1 | 09-29-2001 12:01 PM |
|
|