i’ve problem with local ports in linux when i tried to connect 6703 or 6702 i got this message
Address already in use(0x62)
i checked it by
netstat -ntape
and got
Code:
tcp 0 0 0.0.0.0:6703 0.0.0.0:* LISTEN 1000 22776 2621/java
then used this command with PID of PORT = 2621
Code:
lsof -P -w -n -p 2621 -a -i
and got
Code:
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
java 2621 user 76u IPv4 18906 0t0 TCP 127.0.0.1:50036->127.0.0.1:2181 (ESTABLISHED)
java 2621 user 83u IPv4 22773 0t0 TCP 127.0.0.1:56733->127.0.0.1:3773 (ESTABLISHED)
java 2621 user 86u IPv4 22776 0t0 TCP *:6703 (LISTEN)