LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Port won't Listen (https://www.linuxquestions.org/questions/linux-networking-3/port-wont-listen-180628/)

dvong3 05-12-2004 06:54 AM

Port won't Listen
 
I have 2 Linux box, AS 2.1 & AS 3. My AS 2.1 port 13782 is listening but my AS 3 is not. How do I troublshoot this networking issue?

dvong

# telnet linuxas 13782
Trying 198.33.160.91...
Connected to spain.
Escape character is '^]'.

Connection closed by foreign host.

[root@Canada netbackup]# telnet carott 13782
Trying 198.33.160.90...
telnet: Unable to connect to remote host: Connection refused
[root@Canada netbackup]#

maxut 05-12-2004 08:01 AM

check if service works in carrott box.

#netstat -a |grep tcp
will show u net status for tcp ports. have a look if that service listens its port.

if it s ok, check firewall configuration.

dvong3 05-12-2004 08:16 AM

Thanks for the reply. There are no port listed for 13782. I have no firewall setup on my Linux. Any more clues?

[root@Canada root]# netstat -a |grep tcp
tcp 0 0 *:exec *:* LISTEN
tcp 0 0 *:kshell *:* LISTEN
tcp 0 0 *:32768 *:* LISTEN
tcp 0 0 *:login *:* LISTEN
tcp 0 0 *:8065 *:* LISTEN
tcp 0 0 *:32769 *:* LISTEN
tcp 0 0 *:nfs *:* LISTEN
tcp 0 0 *:shell *:* LISTEN
tcp 0 0 localhost.localdo:32777 *:* LISTEN
tcp 0 0 *:9098 *:* LISTEN
tcp 0 0 *:netbios-ssn *:* LISTEN
tcp 0 0 *:909 *:* LISTEN
tcp 0 0 *:sunrpc *:* LISTEN
tcp 0 0 Carott:1808 *:* LISTEN
tcp 0 0 *:x11 *:* LISTEN
tcp 0 0 *:http *:* LISTEN
tcp 0 0 Carott:1809 *:* LISTEN
tcp 0 0 *:1521 *:* LISTEN
tcp 0 0 Carott:oracle-em1 *:* LISTEN
tcp 0 0 *:ftp *:* LISTEN
tcp 0 0 *:ssh *:* LISTEN
tcp 0 0 *:telnet *:* LISTEN
tcp 0 0 localhost.localdoma:ipp *:* LISTEN
tcp 0 0 localhost.localdom:smtp *:* LISTEN
tcp 0 0 Canada:oracle-em2 *:* LISTEN
tcp 0 0 *:bpjava-msvc *:* LISTEN
tcp 0 0 *:890 *:* LISTEN
tcp 0 0 *:https *:* LISTEN
tcp 0 0 *:8060 *:* LISTEN
tcp 0 0 *:microsoft-ds *:* LISTEN
tcp 0 0 *:klogin *:* LISTEN
tcp 0 0 localhost.localdoma:ipp localhost.localdo:32772 ESTABLISHED
tcp 0 0 Carott:1521 Canada:32808 ESTABLISHED
tcp 0 0 Carott::32808 Canada:1521 ESTABLISHED
tcp 0 0 localhost.localdo:32772 localhost.localdoma:ipp ESTABLISHED
tcp 0 48 Carott:ssh 199.33.100.139:3173 ESTABLISHED
tcp 0 0 Carott:ssh 199.33.100.104:4822 ESTABLISHED
tcp 0 0 Carott:ssh 199.33.100.104:4823 ESTABLISHED
[root@Carott root]

maxut 05-12-2004 08:25 AM

i had a look at /etc/services
[root@egemen root]# cat /etc/services |grep 13782
bpcd 13782/tcp # VERITAS NetBackup
bpcd 13782/udp # VERITAS NetBackup


your service works on tcp port? if its so your service doesnt work.

have a look at logs. generally it says why it doesnt work.
try to restart it. and check it by netstat and ps commands.

#ps uax

dvong3 05-12-2004 12:18 PM

Yes, I have 13782 in my /etc/services. I found nothing in the log stating backup problem. I restart the service and even reboot the server, still not working and my "connection is still refuse (status 57)", vertias. My AS 2.1 had no problem but AS 3 is giving me headache.


All times are GMT -5. The time now is 12:01 PM.