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


 
Thread Tools Search this Thread
Special Forums IP Networking Tcp ip port open but no such process (merged: Release A Port)
# 8  
Old 03-01-2013
The lsof is most portable:
Code:
netstat -tlp |grep <port_no>
 
lsof | grep <port_no>

# 9  
Old 03-01-2013
i tried but it didnt work it seems that the netsat tell me that such pid exist but in real there is not such a process.
here is the scenario
i connected to this server as a client and run a backup application on client.
the server use the port 5914 for this application.
withnetsat i can see that this port is in listening state and even the connection between server and client is in establishment state but there is not really anything about that pid in ps or lsof
is it really possible?
# 10  
Old 03-01-2013
Is there any virtualization on this box? Smilie

Share some of the output with us, sanitized if necessary.
# 11  
Old 03-01-2013
thanks i am not at the office but i will explain more when i use netstat it says
Imagethat not all processes could be identified,non-owned process info will not be shown you would have to be root too see it all.
do you thinks because of wrong user it can not identify the process?
here is the connection that i want to kill with its port no.(netstat)
tcp 0 0 10.20.111.14:5914 10.20.110.1:1112 established


netstat -nlpn did not give me any further information about this connection
Image

Last edited by alinamadchian; 03-01-2013 at 04:36 PM..
# 12  
Old 03-01-2013
If you are not root, you cannot see other people's processes. You cannot be sure who is using a port but it is not your process. Can you move your server to another port?

Usually, when a high (>1023) port is connected to a low port, the high port is randomly assigned on a user client socket() call and the low port is where it connected, as low ports are restricted to root only at the time of binding. Port 1112 is Intelligent Commiunications Protocol or mini-sql, nominally, but could be anything. Service Name and Transport Protocol Port Number Registry Is 1112 in /etc/services ?
# 13  
Old 03-01-2013
As DGPickett noted you cant see the output of lsof if the process using port 5914 is not owned by you or if you do not have root privileges...so can you post the output of the following cmd...
Code:
lsof -i:5914

# 14  
Old 03-02-2013
yes i am definitely sure that 1112 port for client is a random port because i run this particular application in another client connected to exact similar server although the server port was 5914 the client port was different from 1112.some other random port.i have to mention that when i used the so called "server" it is not really a server it is a high tech optical equip that use unix bash shell for operating sys.and for logging on to different unit of this equip i should use ssh.

---------- Post updated 03-02-13 at 04:46 AM ---------- Previous update was 03-01-13 at 04:42 PM ----------

when i type lsof -i | 5914
here is the output
sh: 5914: command not found
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

How to find port number wwn of particular port on dual port HBA,?

please find the below o/p for your reference bash-3.00# fcinfo hba-port HBA Port WWN: 21000024ff295a34 OS Device Name: /dev/cfg/c2 Manufacturer: QLogic Corp. Model: 375-3356-02 Firmware Version: 05.03.02 FCode/BIOS Version: BIOS: 2.02; fcode: 2.01;... (3 Replies)
Discussion started by: sb200
3 Replies

2. Programming

Using socket to test a TCP port

Hello, I'm trying to write a small c application to test a tcp port. This works fine for the most part but the default timeout on the connect is very long. I have been reading many posts but and it looks like I need to set the socket to be non-blocking and poll for a result. I have been totally... (2 Replies)
Discussion started by: tjones1105
2 Replies

3. UNIX for Advanced & Expert Users

How to list process connected to tcp port?

Hey guys, I need to kill the process that is currently connected to port 10540. I'm on HP-UX machine. Below is the result of my netstat. $ netstat -an |grep 10540 tcp 0 0 129.0.0.1.10540 *.* LISTEN We don't have lsof command, but we have fuser. ... (3 Replies)
Discussion started by: brichigo
3 Replies

4. Shell Programming and Scripting

TCP port assignment

I have multiple processes running the same program on my linux machine. For each process I want to be able to use a unique (available) TCP port. I have thought of using netstat to check which ports are available for use however, the time-window between checking and selecting might expose some race... (1 Reply)
Discussion started by: timmylita
1 Replies

5. IP Networking

Unknown open port: "6881/tcp open bittorrent-tracker" found with nmap

Hi. I ran nmap on my server, and I get the following: Starting Nmap 4.76 ( http://nmap.org ) at 2009-03-19 16:33 EDT Interesting ports on -------- (-----): Not shown: 997 closed ports PORT STATE SERVICE 22/tcp open ssh 80/tcp open http 6881/tcp open bittorrent-tracker The... (0 Replies)
Discussion started by: Rledley
0 Replies

6. UNIX for Dummies Questions & Answers

close tcp port

Hello, I have a service running (ODBC) and every now and then it will hang and I will have to stop and restart the service. The problem is when I stop the service, it indeed stops the service, but netstat reports a tcp port still open with the fin_wait_2 status. Then I must close the client... (1 Reply)
Discussion started by: raidzero
1 Replies

7. Solaris

Locked TCP port in Solaris 10

Hi all I haven't had much experience with Solaris 10 but we've started running into a problem where a process hangs, it is killed and leaves a zombie process. The sysadmins are saying this zombie process is locking a tcp port and not allowing the process to start up. The process is a usually... (5 Replies)
Discussion started by: casphar
5 Replies

8. UNIX for Dummies Questions & Answers

restrict tcp-port access

Hi Is there any way to restrict the TCP-IP port usage. I want to restrict TCP-IP port 1500/1550 to the oracle osuser. Tanks in advance. Remi (2 Replies)
Discussion started by: remivisser
2 Replies

9. UNIX for Dummies Questions & Answers

Redirecting output to TCP port

Hi All, I suspect this is simple but I cannot find any info on it. I have a logfile on a solaris box (EMS) that I want to tail -f but I want the output of this to be redirected to a TCP port. I have a second solaris box (PEM) running patrol enterprise manager that I am using as an alarm... (1 Reply)
Discussion started by: mscomms
1 Replies

10. IP Networking

tcp problem with port

I am trying to connect via DBACCESS and Informix server to a server on a different computer. When I execute the connect command from dbaccess I get the following message, Exec format error cannot bind a name to the port. As far as I know the port is not being used by another client. How... (1 Reply)
Discussion started by: lopez
1 Replies
Login or Register to Ask a Question