- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- how to check if the port is open
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
тАО02-21-2007 03:38 PM
тАО02-21-2007 03:38 PM
Can you please tell me how to check a port if it is open between a server and client.
e.g. i want to check if port 161/UDP is open for server>client.
thanks in advance
sunny
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-21-2007 03:51 PM
тАО02-21-2007 03:51 PM
Re: how to check if the port is open
From server give the command
telnet client 161
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-21-2007 04:36 PM
тАО02-21-2007 04:36 PM
Re: how to check if the port is open
"netstat -a" command will give you fair amoutn of information about Protocol, Recv-Q, Send-Q, Local Address(Local port number), Foreign Address,(state of connection) with respective headers.
Thanks!
Chetan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-21-2007 04:56 PM
тАО02-21-2007 04:56 PM
Re: how to check if the port is open
this is the output of netstat -an
does this mean that port 514/UDP is not open.
$netstat -an | grep 514
tcp 0 0 *.514 *.* LISTEN
udp 0 0 *.514 *.*
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-21-2007 05:06 PM
тАО02-21-2007 05:06 PM
Re: how to check if the port is open
i executed the command on the server and got the output as mentioned above. i don't have access to the client.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-21-2007 06:08 PM
тАО02-21-2007 06:08 PM
Re: how to check if the port is open
It means that server is ready to accept connections from any port of client to 514 port on the server.
LISTEN state implies that Server is ready to accept connection. For Port to be in listen state, it should be bound/open. Not that the state information is applicable only to tcp connections.
Suppose a client port(eg: 1234) connects/establishes tcp connection with server on 514 port, the output of the netstat will be as given below,
$netstat -an | grep 514
tcp 0 0 *.514
Regards,
Chetan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-21-2007 06:35 PM
тАО02-21-2007 06:35 PM
Re: how to check if the port is open
thanks for your reply
however can u please tell me how to check it for UDP connection at port 514.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-21-2007 08:07 PM
тАО02-21-2007 08:07 PM
SolutionWhen netstat is used without any options only the active udp connections are shown along with other active connections.
eg:
netstat | grep udp
udp 0 0 onc46.ntp *.*
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-22-2007 12:40 PM
тАО02-22-2007 12:40 PM
Re: how to check if the port is open
As for whether a port is "open for server->client" that depends on what you mean by open and whether you are talking about what the server will use as a source port, or what the destination port will be on the client ("destination" from the standpoint of the server)
Netstat can show the ports to which local processes have bound sockets. It will say nothing about what is bound on a remote system, nor will it say anything about any firewalls or other filtering between the server and the client.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-22-2007 01:00 PM
тАО02-22-2007 01:00 PM
Re: how to check if the port is open
Chetan as u said i checked netstat without any options. i did not get any active connections relating to the concerned port.
Rick thanks for the useful information.
Regards
sunny