- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Ports already assigned
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2005 01:41 PM
12-05-2005 01:41 PM
Ports already assigned
I ahve assignes a port range from 64000 to 65000 to my application, (Included in /etc/services), But still i can see some of the dtsessions are using this port range,
Anybody can help me to find out,Why its happening..?
Thanks in advance,
Siju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2005 01:57 PM
12-05-2005 01:57 PM
Re: Ports already assigned
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2005 02:16 PM
12-05-2005 02:16 PM
Re: Ports already assigned
Thanks for the prompt replay,
Can you please tell me which port range i can use (I want 100o ports,Which is dedicated for my application) and please explain what is meaning of anonymous ports,
Thanks in advance,
Siju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2005 02:33 PM
12-05-2005 02:33 PM
Re: Ports already assigned
u can also do your part in assigning points:
http://forums1.itrc.hp.com/service/forums/pageList.do?userId=CA1309047&listType=unassigned&forumId=1
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2005 02:35 PM
12-05-2005 02:35 PM
Re: Ports already assigned
http://www.iana.org/assignments/port-numbers
Normally, you choose a singler dedicated port that all client use to coonect and then hand off the connections by forking a new process and using 0 as the port number. The Os then chooses a port from the anonymous range automatically.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2005 04:41 PM
12-05-2005 04:41 PM
Re: Ports already assigned
Tanks again for helping to sort it out the problem,
I can set the upper limit of private ports,
Suppose i am setting it as 62000, can i use the remaining port numbers for my applications,
My problem with the application is,Once clients connected to the server with a spcific port number, The next time also, The the same client will try to connect with the same port only,If someother ports already used this port , The connection will fail,
I know the application design is not well, But i am not in a position to change the application, And i need to provide some work aroud also,
Previously, I am using the port range 64401-64469, And application was working fine also,Now i need to add some more ports,(Planning in between 64470-64525), But i can see some of dtsession applicatiosn are using the port in this range,
Can i restrict dtsession for using these ports, I could not understand, if private port numbers were assigned randomly, How my application is working fine with out any problem,
Thanks in advance,
Siju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2005 09:51 PM
12-05-2005 09:51 PM
Re: Ports already assigned
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=437410
Generate /etc/services file with service name and port number so that your application will use it.
hth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2005 07:11 AM
12-06-2005 07:11 AM
Re: Ports already assigned
However, there is an approach which may work. You can issue an ndd command to define the highest anonymous port and then use a range above that. That should work for.
ndd -set /dev/tcp set_largest_anon_port 64000
Now, you should be able to use the ports above 64000. Your ndd should occur fairly early in the rc scripts so that these ports are not used before your ndd command is executed.
If you put the parameters in /etc/rc.config.d/nddconf, the rc script (/sbin/init.d/net) should automatically take care of it for you.