Operating System - OpenVMS
1827988 Members
2532 Online
109973 Solutions
New Discussion

problem with multinet re-using port #

 
juanita_3
New Member

problem with multinet re-using port #

Hi,

Having a problem with vms/multinet re-using port #.

Port # used is in 6000 range and when port needs to be reused stop/id is done on process using that port but process doesn't release port and the process still shows up as ? Does something else need to be done so another process can have access to that port # soon after the process is killed?

thanks,


4 REPLIES 4
Willem Grooters
Honored Contributor

Re: problem with multinet re-using port #

What VMS version is used?

If this process is started as a service, disabling and enabling the port might help.
Better solution:

$ TCPIP DISABLE SERVICE /PORT=#
$ STOP/ID=
$ TCPIP ENABLE SERVICE /PORT=#

HTH

Willem
Willem Grooters
OpenVMS Developer & System Manager
juanita_3
New Member

Re: problem with multinet re-using port #

vms 7.3-1.
would that work for multinet also?

thank you
Brian Reiter
Valued Contributor

Re: problem with multinet re-using port #

Perhaps try using STOP/IMAGE/ID=xxxx

This invokes the $FORCEX system service. Could mean that some tidying up is done on exit.
Cass Witkowski
Trusted Contributor

Re: problem with multinet re-using port #

If you do a $MU SHOW/CONN=ALL does your port show up in the local side? Is the local address an * or an IP address. If it is an * then there is a listener for that port. It may be a process or it may be multinet. If there an address in the remote column then there is an actual TCPIP connection.

To find out if a process has the port open do the following:

$ Define MU$SDA MULTINET:MULTINET$SDA.EXE
$ SET TERM/WID=132
$ ANALYZE/SYSTEM
$ MU SHOW CONNECTION

Look through output for your port. Then look to right about 3/4 of the way on the line for the device. It should be an INETxxx device or BGxxxx. Do a SHOW DEVICE of this device to see who the owner is


Multinet also has the ability to listen for connection request on a port and then create a detatched process to service that connection. This has advantages that you don't have to write the listener code just the service code. It also reserves the port so some process can use it before your listener server could start. To see if this is the case do:
$ MULTINET CONFIG/SERVER
server-config> SHOW * /FULL

Search the output for your port.

You can disable the service.

server-config> DISABLE xxx
server-config> RESTART