Member Login

Remember Me
Forgot Password?
Join Us!

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.
Jobs from Indeed

Link To This Forum!

Partner Button
Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

How to open port?

How to open port?


i'm encountering error connecting from my server to a client on specific port. I issued "telnet <client_name> 13782" and gave me "could not open connection to host on port 13782", but connecting from client to server over the same port is ok. I would like to know how to open that port on the client side.

Appreciate your help. Thanks.

RE: How to open port?

a tcp port is open if there is a service ( program ) listening on that port.
to listen to a port a program open a socket specifying that it will wait for incoming messages on that number .
if you want to know which port are open on your machine do netstat -a and look for port whith a LISTEN state.
for ports open on a remote machine you can use a port scan utiliti .

RE: How to open port?


Apparently, your server has an application listening on port 13782 and your client does not.

When you attempt to connect to the server, the connection succeeds because, as raztaboule explained, there is a service (aka program or application) listening for connections on that port.

However, the connection to the client fails because the client does not have an application listening on port 13782.

Hope that helps,

RE: How to open port?

Hi Raztaboule/Jason,

First, thanks for replying. Really appreciate that. Actually that port is being use by VERITAS Netbackup (bpcd port) and it is installed and setup on the client. I checked the Windows etc services file and it is defined there. Is there other way inside Windows where I can check whether that port is defined or not?  

Here is what I extracted out of netstat output when I ran it on the client (kjo-smtp) side, server is kjo-backup,
 kjo-smtp:bpcd    LISTENING
 kjo-smtp:3556    kjo-backup:bpcd    ESTABLISHED
 kjo-smtp:3556    LISTENING

Does this mean that that port is open on the client side?

Hope to receive our reply. Thanks again in advance.

RE: How to open port?

i don't really knows Windows ( does anyone really knows windows ? ) , run :
   netstat -an
it will give you the same output without translating port numbers <-> services , so you will really see which port number is open.

hope this help.

RE: How to open port?

Quote (coolice):

kjo-smtp:bpcd    LISTENING
Assuming bpcd is port 13782, then yes, there is a listen and you should be able to connect.
If that is a TCP port (as opposed to UDP), you can test it quickly by logging into kjo-smtp and connecting to that port with telnet:  telnet localhost 13782

If you get a connection, but are still unable to connect from another machine, there may be a firewall issue or a configuration issue with the application trying to connect to kjo-smtp.  If you don't get a connection (connection refused), but netstat indicates there is a listen on the bpcd port, bpcd is likely something other than 13782.

Quote (coolice):

I checked the Windows etc services file and it is defined there.
I believe raztaboule wanted you to check for a related Windows service, although there's nothing wrong with the port being aliased in the etc services file.  Since there is a listen on that port, we know some application has it opened.  If some application other than Netbackup is using the port, Netbackup won't be able to listen on it.

Go into control panel and see if there is a Netbackup service and verify it is running (get a windows admin to help you if you cannot find the list of services).  Also, check the event log to see if Netbackup is complaining about not being able to post a listen on that port.

RE: How to open port?

Hi guys,

Thanks again for the reply. I'll try that and will update you for anything. One thing for sure is I don't have any firewalls in between. What is there in DNS that I need to check? Can you give me a hint?

Appreciate your replies.

Wish me luck. Cheers.

RE: How to open port?

I think windows has it's own firewall buit-in.
so it's possible that it is activated ( check somewhere in the IP properties panel i think ) .

run :
nslookup kjo-smtp
will return the IP of kjo-smtp , if it's what it is supposed to be , it is OK.

But as JasonDeckar says : telnet localhost 13782 is the best starting point.

RE: How to open port?

Hey guys..I have the same problem to get my port 13782 to listen. I have two client system running red hat AS2.1 and the other AS3. Both client system have veritas client installed and both have port 13782 listed on /etc/services. My AS2.1 box perform its backup remotely and port 13782 is listening without a hitch. But my AS3 is not working at all, I can not get port 13782 to connect, see output below. In my finding I cannot telnet via port from server to client by client to server no problem. Anybody know how to fix this issue on red hat AS3 to allow port 13782 to listen?


client to server
[root@Canada bin]# telnet usa 13782
Connected to c130a (
Escape character is '^]'.

Connection closed by foreign host.

Client itself
[root@Canada bin]# telnet canada 13782
telnet: Unable to connect to remote host: Connection refused

[root@Canada bin]# cat /etc/services |grep bpcd
bpcd            13782/tcp                       # VERITAS NetBackup
bpcd            13782/udp                       # VERITAS NetBackup

RE: How to open port?

have you add some entrys in /etc/hosts.allow and/or /etc/hosts.deny ?
and with iptables ?

bye !

RE: How to open port?

Thanks for the quick response. No, didn't edit any files. Any more clues to get this working?

RE: How to open port?

You may not have any "firewalls" in between machines, but check with the network guys to make sure that any routers in between have their ACL's configured for that port to be open.

Unix IS user friendly... It's just selective about who its friends are.

RE: How to open port?

Both machine are in the same vlan, no acl added to that vlan, no router is in between, both Linux box is plug into cisco 5500. My best guess its the client itself, not sure how to fix this or see this happen to anybody.

RE: How to open port?

Another thing, I cannot telnet into its own ip address with port 13782... "telnet canada 13782". So I can say this is not networking related.

RE: How to open port?

i supposed you have check the state of the port with :  netstat -an ( or lsof -i ) | grep LISTEN  .
with lsof it will be better cause you can check that the program using the port 13782 is the one you expect to.

what happends with : telnet localhost 13782   ??
if it works well , can be that host canada is not resolved.

RE: How to open port?

yeah, i try that. DNS is setup on this client, resolv.conf. I cannot telnet localhost on my AS3 but AS2.1 works.

[root@Canada root]# telnet localhost 13782
telnet: Unable to connect to remote host: Connection refused

# telnet localhost 13782
Connected to localhost.
Escape character is '^]'.

RE: How to open port?

Post output from 'netstat -an |grep 13782' so we can see if its listening or not.

RE: How to open port?

I am new to this forum, so if I am in the wrong thread,
please let me know.

I am able to Telnet into our router directly using command:
telnet  But when I try to telnet to a specific port I get a connection failure message of: could not open a connection to host on port 25...connection failed. It's like this on all ports.

Our router is a Seimens 5940 and it appears that all ports are open. How can I configure the router to open port 25?

RE: How to open port?

Heres the output....

[root@Canada root]# netstat -an |grep 13782
[root@Canada root]# lsof -i |grep listen
[root@Canada root]# lsof -i |grep LISTEN
portmap    474     rpc    4u  IPv4    987       TCP *:sunrpc (LISTEN)
rpc.statd  493 rpcuser    6u  IPv4   1031       TCP *:32768 (LISTEN)
cupsd      593    root    0u  IPv4   1269       TCP localhost.localdomain:ipp (LISTEN)
sshd       649    root    3u  IPv4   1288       TCP *:ssh (LISTEN)
xinetd     663    root    5u  IPv4   1355       TCP *:bpjava-msvc (LISTEN)
xinetd     663    root    6u  IPv4   1356       TCP *:klogin (LISTEN)
xinetd     663    root    8u  IPv4   1357       TCP *:kshell (LISTEN)
xinetd     663    root    9u  IPv4   1358       TCP *:exec (LISTEN)
xinetd     663    root   10u  IPv4   1359       TCP *:login (LISTEN)
xinetd     663    root   11u  IPv4   1360       TCP *:shell (LISTEN)
xinetd     663    root   12u  IPv4   1361       TCP *:9098 (LISTEN)
xinetd     663    root   13u  IPv4   1362       TCP localhost.localdomain:32769 (LISTEN)
xinetd     663    root   14u  IPv4   1684       TCP *:telnet (LISTEN)
rpc.rquot  696    root    4u  IPv4   1540       TCP *:876 (LISTEN)
rpc.mount  715    root    4u  IPv4   1585       TCP *:894 (LISTEN)
vsftpd     725    root    3u  IPv4   1657       TCP *:ftp (LISTEN)
sendmail   746    root    4u  IPv4   1702       TCP localhost.localdomain:smtp (LISTEN)
httpd      775    root    3u  IPv4   1751       TCP *:http (LISTEN)
httpd      775    root    4u  IPv4   1753       TCP *:https (LISTEN)
httpd      823  apache    3u  IPv4   1751       TCP *:http (LISTEN)
httpd      823  apache    4u  IPv4   1753       TCP *:https (LISTEN)
httpd      824  apache    3u  IPv4   1751       TCP *:http (LISTEN)
httpd      824  apache    4u  IPv4   1753       TCP *:https (LISTEN)
httpd      825  apache    3u  IPv4   1751       TCP *:http (LISTEN)
httpd      825  apache    4u  IPv4   1753       TCP *:https (LISTEN)
httpd      826  apache    3u  IPv4   1751       TCP *:http (LISTEN)
httpd      826  apache    4u  IPv4   1753       TCP *:https (LISTEN)
httpd      827  apache    3u  IPv4   1751       TCP *:http (LISTEN)
httpd      827  apache    4u  IPv4   1753       TCP *:https (LISTEN)
httpd      828  apache    3u  IPv4   1751       TCP *:http (LISTEN)
httpd      828  apache    4u  IPv4   1753       TCP *:https (LISTEN)
httpd      829  apache    3u  IPv4   1751       TCP *:http (LISTEN)
httpd      829  apache    4u  IPv4   1753       TCP *:https (LISTEN)
httpd      830  apache    3u  IPv4   1751       TCP *:http (LISTEN)
httpd      830  apache    4u  IPv4   1753       TCP *:https (LISTEN)
smbd       831    root   12u  IPv4   1849       TCP *:microsoft-ds (LISTEN)
smbd       831    root   13u  IPv4   1850       TCP *:netbios-ssn (LISTEN)
appxd      893    root    3u  IPv4   1943       TCP *:8060 (LISTEN)
appxd      896    root    3u  IPv4   1949       TCP *:8065 (LISTEN)
X          924    root    1u  IPv4   1989       TCP *:x11 (LISTEN)
fam       1020    root    0u  IPv4   1362       TCP localhost.localdomain:32769 (LISTEN)
fam       1020    root    1u  IPv4   1362       TCP localhost.localdomain:32769 (LISTEN)
fam       1020    root    2u  IPv4   1362       TCP localhost.localdomain:32769 (LISTEN)
[root@Canada root]#

RE: How to open port?

It doesn't look like its listening.  Problem with the Veritas client.  Call them for support.

RE: How to open port?

hi dvong3 ,

what is bpjava-msvc ? is not that running on the port 13782 ?
do a "grep 13782 /etc/services" to looks for a conflict.
lsof -i will be more explicit then netstat.

hi Irangelaz ,

re-read this thread.
If you are sure it's not a router problem, netstat -a will show you if port 25 is on a listening state on you system. if not launch your sendmail server.

RE: How to open port?

Not sure what it is...but it belongs to veritas port probably GUI management when I install the veritas client. It also included 2 xinetd functions, bpcd & bpjava-msvc...i think. I did not find any ports conflicting with 13782. Here is the output for lsof -i.

bprd            13720/tcp                       # BPRD (VERITAS NetBackup)
bprd            13720/udp                       # BPRD (VERITAS NetBackup)
bpdbm           13721/tcp                       # BPDBM (VERITAS NetBackup)
bpdbm           13721/udp                       # BPDBM (VERITAS NetBackup)
bpjava-msvc     13722/tcp                       # BP Java MSVC Protocol
bpjava-msvc     13722/udp                       # BP Java MSVC Protocol
vnetd           13724/tcp                       # Veritas Network Utility
vnetd           13724/udp                       # Veritas Network Utility
bpcd            13782/tcp                       # VERITAS NetBackup
bpcd            13782/udp                       # VERITAS NetBackup
vopied          13783/tcp                       # VOPIED Protocol
vopied          13783/udp                       # VOPIED Protocol

[root@Canada xinetd.d]# cat bpcd
bpcd File

# description: BPCD server

service bpcd
disable = no
id = bpcd-stream
socket_type = stream
protocol = tcp
user = root
wait = no
server = /usr/openv/netbackup/bin/bpcd
[root@Canada xinetd.d]# cat bpjava-msvc
#description: bpjava-msvc server

service bpjava-msvc
disable = no
id = bpjava-msvc-stream
socket_type = stream
protocol = tcp
user = root
wait = no
server = /usr/openv/netbackup/bin/bpjava-msvc
server_args = -transient

[root@Canada xinetd.d]#

[root@Canada xinetd.d]# chkconfig --list |grep bpcd
        bpcd:   on
[root@Canada xinetd.d]# chkconfig --list |grep bpjava-msvc-stream
[root@Canada xinetd.d]# chkconfig --list |grep bpjava-msvc
        bpjava-msvc:    on
[root@Canada xinetd.d]#

RE: How to open port?

[root@Canada xinetd.d]# lsof -i
portmap    494     rpc    3u  IPv4   1072       UDP *:sunrpc
portmap    494     rpc    4u  IPv4   1075       TCP *:sunrpc (LISTEN)
rpc.statd  513 rpcuser    4u  IPv4   1110       UDP *:32768
rpc.statd  513 rpcuser    5u  IPv4   1099       UDP *:689
rpc.statd  513 rpcuser    6u  IPv4   1117       TCP *:32768 (LISTEN)
cupsd      613    root    0u  IPv4   1351       TCP localhost.localdomain:ipp (LISTEN)
cupsd      613    root    2u  IPv4   1352       UDP *:ipp
cupsd      613    root    3u  IPv4   2555       TCP localhost.localdomain:ipp->localhost.localdomain:32773 (ESTABLISHED)
sshd       669    root    3u  IPv4   1370       TCP *:ssh (LISTEN)
xinetd     683    root    5u  IPv4   1437       TCP *:bpjava-msvc (LISTEN)
xinetd     683    root    6u  IPv4   1438       TCP *:klogin (LISTEN)
xinetd     683    root    8u  IPv4   1439       TCP *:kshell (LISTEN)
xinetd     683    root    9u  IPv4   1440       TCP *:exec (LISTEN)
xinetd     683    root   10u  IPv4   1441       TCP *:login (LISTEN)
xinetd     683    root   11u  IPv4   1442       TCP *:shell (LISTEN)
xinetd     683    root   12u  IPv4   1443       TCP *:9098 (LISTEN)
xinetd     683    root   13u  IPv4   1444       TCP localhost.localdomain:32769 (LISTEN)
xinetd     683    root   14u  IPv4   1767       TCP *:telnet (LISTEN)
xinetd     683    root   15u  IPv4   1768       UDP *:tftp
ntpd       693     ntp    4u  IPv4   1433       UDP *:ntp
ntpd       693     ntp    5u  IPv4   1434       UDP localhost.localdomain:ntp
ntpd       693     ntp    6u  IPv4   1435       UDP Canada:ntp
rpc.rquot  716    root    3u  IPv4   1616       UDP *:893
rpc.rquot  716    root    4u  IPv4   1622       TCP *:896 (LISTEN)
rpc.mount  735    root    3u  IPv4   1664       UDP *:911
rpc.mount  735    root    4u  IPv4   1667       TCP *:914 (LISTEN)
vsftpd     745    root    3u  IPv4   1739       TCP *:ftp (LISTEN)
sendmail   766    root    4u  IPv4   1784       TCP localhost.localdomain:smtp (LISTEN)
httpd      795    root    3u  IPv4   1833       TCP *:http (LISTEN)
httpd      795    root    4u  IPv4   1835       TCP *:https (LISTEN)
httpd      843  apache    3u  IPv4   1833       TCP *:http (LISTEN)
httpd      843  apache    4u  IPv4   1835       TCP *:https (LISTEN)
httpd      844  apache    3u  IPv4   1833       TCP *:http (LISTEN)
httpd      844  apache    4u  IPv4   1835       TCP *:https (LISTEN)
httpd      845  apache    3u  IPv4   1833       TCP *:http (LISTEN)
httpd      845  apache    4u  IPv4   1835       TCP *:https (LISTEN)
httpd      846  apache    3u  IPv4   1833       TCP *:http (LISTEN)
httpd      846  apache    4u  IPv4   1835       TCP *:https (LISTEN)
httpd      847  apache    3u  IPv4   1833       TCP *:http (LISTEN)
httpd      847  apache    4u  IPv4   1835       TCP *:https (LISTEN)
httpd      848  apache    3u  IPv4   1833       TCP *:http (LISTEN)
httpd      848  apache    4u  IPv4   1835       TCP *:https (LISTEN)
httpd      849  apache    3u  IPv4   1833       TCP *:http (LISTEN)
httpd      849  apache    4u  IPv4   1835       TCP *:https (LISTEN)
httpd      850  apache    3u  IPv4   1833       TCP *:http (LISTEN)
httpd      850  apache    4u  IPv4   1835       TCP *:https (LISTEN)
smbd       851    root   12u  IPv4   1931       TCP *:microsoft-ds (LISTEN)
smbd       851    root   13u  IPv4   1932       TCP *:netbios-ssn (LISTEN)
nmbd       855    root    6u  IPv4   1935       UDP *:netbios-ns
nmbd       855    root    7u  IPv4   1936       UDP *:netbios-dgm
nmbd       855    root    8u  IPv4   1938       UDP Canada:netbios-ns
nmbd       855    root    9u  IPv4   1939       UDP Canada:netbios-dgm
appxd      913    root    3u  IPv4   2025       TCP *:8060 (LISTEN)
appxd      916    root    3u  IPv4   2031       TCP *:8065 (LISTEN)
X          944    root    1u  IPv4   2071       TCP *:x11 (LISTEN)
fam       1040    root    0u  IPv4   1444       TCP localhost.localdomain:32769 (LISTEN)
fam       1040    root    1u  IPv4   1444       TCP localhost.localdomain:32769 (LISTEN)
fam       1040    root    2u  IPv4   1444       TCP localhost.localdomain:32769 (LISTEN)
eggcups   1058    root   14u  IPv4   2554       TCP localhost.localdomain:32773->localhost.localdomain:ipp (ESTABLISHED)
tnslsnr   1305  oracle    8u  IPv4   5445       TCP *:1521 (LISTEN)
tnslsnr   1305  oracle   10u  IPv4   6577       TCP Canada:1521->Canada:32789 (ESTABLISHED)
dbsnmp    1311  oracle   10u  IPv4   5495       TCP Canada:oracle-em1 (LISTEN)
dbsnmp    1311  oracle   11u  IPv4   5496       TCP Canada:oracle-em2 (LISTEN)
dbsnmp    1311  oracle   16u  IPv4   5498       TCP Canada:1808 (LISTEN)
dbsnmp    1311  oracle   21u  IPv4   5499       TCP Canada:1809 (LISTEN)
oracle    1348  oracle   12u  IPv4   6548       UDP localhost.localdomain:32771
oracle    1348  oracle   14u  IPv4   6576       TCP Canada:32789->Canada:1521 (ESTABLISHED)
in.telnet 1744    root    0u  IPv4 141520       TCP Canada:telnet-> (ESTABLISHED)
in.telnet 1744    root    1u  IPv4 141520       TCP Canada:telnet-> (ESTABLISHED)
in.telnet 1744    root    2u  IPv4 141520       TCP Canada:telnet-> (ESTABLISHED)
[root@Canada xinetd.d]#

RE: How to open port?

hey're right on the money. Its the bpcd file. I should cancel my web support with Red Hat and use tek-tips:) Thanks again.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close