Tcp ip port open but no such process (merged: Release A Port) | Unix Linux Forums | IP Networking

  Go Back    


IP Networking Learn TCP/IP, Internet Protocol, Routing, Routers, Network protocols in this UNIX and Linux forum.

Tcp ip port open but no such process (merged: Release A Port)

IP Networking


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 03-01-2013
alinamadchian alinamadchian is offline
Registered User
 
Join Date: Mar 2013
Last Activity: 2 March 2013, 12:40 PM EST
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
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  
Old 03-01-2013
DGPickett DGPickett is offline Forum Advisor  
Registered User
 
Join Date: Oct 2010
Last Activity: 30 October 2014, 5:35 PM EDT
Location: Southern NJ, USA (Nord)
Posts: 4,473
Thanks: 8
Thanked 549 Times in 526 Posts
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  
Old 03-01-2013
RudiC RudiC is offline Forum Advisor  
Registered User
 
Join Date: Jul 2012
Last Activity: 31 October 2014, 5:45 AM EDT
Location: Aachen, Germany
Posts: 4,476
Thanks: 74
Thanked 1,097 Times in 1,033 Posts
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  
Old 03-01-2013
alinamadchian alinamadchian is offline
Registered User
 
Join Date: Mar 2013
Last Activity: 2 March 2013, 12:40 PM EST
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
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  
Old 03-01-2013
alinamadchian alinamadchian is offline
Registered User
 
Join Date: Mar 2013
Last Activity: 2 March 2013, 12:40 PM EST
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
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  
Old 03-01-2013
RudiC RudiC is offline Forum Advisor  
Registered User
 
Join Date: Jul 2012
Last Activity: 31 October 2014, 5:45 AM EDT
Location: Aachen, Germany
Posts: 4,476
Thanks: 74
Thanked 1,097 Times in 1,033 Posts
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  
Old 03-01-2013
DGPickett DGPickett is offline Forum Advisor  
Registered User
 
Join Date: Oct 2010
Last Activity: 30 October 2014, 5:35 PM EDT
Location: Southern NJ, USA (Nord)
Posts: 4,473
Thanks: 8
Thanked 549 Times in 526 Posts
Can't the gods move a thread to a new forum? It's just rdbms values!
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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



All times are GMT -4. The time now is 06:35 AM.