- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- how to open a port ?
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
07-08-2009 08:28 AM
07-08-2009 08:28 AM
how to open a port ? i want to start a new application temp as well as across the reboot?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2009 08:32 AM
07-08-2009 08:32 AM
Solutioncheck /etc/services for port reservations.
netstat -an
See if there is a service listening on the port.
If nothing is there, you can set it up.
The service will need the following to auto start.
start up script in /sbin/init.d
Soft links to the startup script in /sbin/rc3.d starting with an S for start up and K for kill in /sbin/rc2.d
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2009 08:35 AM
07-08-2009 08:35 AM
Re: how to open a port ?
A port is "open" if "something" is listening to this port.
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2009 01:05 PM
07-08-2009 01:05 PM
Re: how to open a port ?
open port 22
Although, running
/usr/sbin/sshd
when run, will start listing to port 22, which means, in your word, the port is open. I am ashamed to say that I am not a C programmer but if you want to "open" a port, you will need to employ sockets programming using C.
Opening a port usually means nothing without the application listening to port doing something though.
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2009 08:09 PM
07-08-2009 08:09 PM
Re: how to open a port ?
However, there are some classic methods to "open" a port.
Write an application that
- creates a socket
- bind this socket to an address (port)
- listen to this address
If a clients wants to connect, accept this attempt. Now server and client can communicate.
An example for this is a web server, bound to port 80, always running and listening for connection attempts.
The inetd is doing the same (more or less), but if a connection attempt arrieves, it is starting the appropriate process.
An example is telnetd.
So in general, if a process is listening on a specific port, you can consider this port as "open". If nothing is listening, it's in your wording "closed".
IMHO the terms "open" and "closed" are wrong and misleading.
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!
