1833527 Members
3164 Online
110061 Solutions
New Discussion

random port issue

 
Anil_5
Advisor

random port issue

A Java application creates random port connections across the network, is there a way to limit the number of ports or filter the ports as the application cannot be changed at the code level.

Anil
webapp
2 REPLIES 2
Craig Gilmore
Trusted Contributor

Re: random port issue

Yes, you can limit the range of ports used but since the application cannot be changed at the code level, any port limitation would effect the entire system rather than just this one application.

On HPUX 11.x NDD can be used to set the range for random or wildcard ports.

See the ndd man pages for further information.

On HPUX 10.20 your options are limited. You can either use a low range 1024-4999 or a high range. (sorry, don't remember the starting number off the top of my head.) nettune can be used to change the range and I believe you can tune the starting number, above the 41000 range as I remember.

I would not recommend limiting the entire system, unless this Java application is the only thing running on it.

Regards,

CG
Anil_5
Advisor

Re: random port issue

Thanks, any idea of a port proxy which would do this in a application-firewall-backend app server situation.Trying to limit the ports passed thru a firewall.

Anil
webapp