- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- define a listening port - tcp
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
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
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
тАО04-11-2006 07:30 AM
тАО04-11-2006 07:30 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-11-2006 07:38 AM
тАО04-11-2006 07:38 AM
Re: define a listening port - tcp
could you tell more precisely what your concern is?
If a programming matter, the socket creation primitives provide the ability to control socket port numbers.
If other, please explain...
antonio.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-11-2006 07:45 AM
тАО04-11-2006 07:45 AM
Re: define a listening port - tcp
A programmer came to me and ask for a listening port for his socket programming. I m not sure how to create one for him.
Say I want to open a port at 30001 and use
netstat -a
to see it. Is this possible? or I mess up the concept. Please point out.
Regards!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-11-2006 07:56 AM
тАО04-11-2006 07:56 AM
Re: define a listening port - tcp
http://www.iana.org/assignments/port-numbers
and see if this is already a port assigned by IANA for a registered use (30001 is). If this is an important application, he should go through the procedure and get his port
reserved.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-11-2006 07:57 AM
тАО04-11-2006 07:57 AM
SolutionWhat is the purpose of this request ? does the programmer need your server to listen to a remote commnunication coming from another host on this 30001 port ? Or he wants to write program to listen to this port and wants you to open it. If the situation is the latter, you as the sysadmin have nothing to do. It is all upto him to write his code to listen that port.
More information, especially the purpose of this request will be the most helpful.
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-11-2006 08:10 AM
тАО04-11-2006 08:10 AM
Re: define a listening port - tcp
>> does the programmer need your server to listen to a remote commnunication coming from another host on this 30001 port ?
I believe above is the purpose. He is planning to transfer something between two hosts. In this case, do I need to do anything about it as a sysadmin? or he as a programmer needs to write a program to listen at that port. Thanks.
Regards!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-11-2006 08:22 AM
тАО04-11-2006 08:22 AM
Re: define a listening port - tcp
HTH
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-11-2006 08:48 AM
тАО04-11-2006 08:48 AM
Re: define a listening port - tcp
This range is controlled by ndd variables xxxx_anon_port (e.g. tcp_largest_anon_port).
Using port number 30001 or any other outside anonymous range is OK.
antonio.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-12-2006 01:30 AM
тАО04-12-2006 01:30 AM
Re: define a listening port - tcp
a) add to /etc/services file:
b) add to /etc/inetd.conf file:
(man inetd.conf for selections for above)
c) Reconfigure the Internet daemon:
inetd -c