- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- how to free the 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
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
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
тАО03-05-2007 03:12 PM
тАО03-05-2007 03:12 PM
how to free the port
I am using rp8420 server with 11.11 version.My client wants to run some application in port 6010.He is not able to run that application on that port.We check the port by giving commands as netstat -an | grep 6010
tcp 0 0 10.4.13.218.16010 10.4.13.218.51895 TIME_WAIT
tcp 0 0 10.4.13.218.51895 10.4.13.218.16010 TIME_WAIT
tcp 0 0 10.4.13.218.16010 10.4.13.218.51965 TIME_WAIT
I am getting o/p like this.
Can u plz tell me how to free up the port.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-05-2007 04:05 PM
тАО03-05-2007 04:05 PM
Re: how to free the port
might get less misleading output from a
command like:
netstat -an | grep '.6010 '
For example:
td176> netstat -an | grep '.23 '
tcp 0 2 15.170.178.176.23 209.98.249.184.11373 ESTABLISHED
tcp 0 0 *.23 *.* LISTEN
I don't see port 6010 in your "netstat -an"
output.
It might help if you explained what the
application is, and exactly what "not able to
run" means. I'd guess that a busy port 6010
is not your problem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-05-2007 08:10 PM
тАО03-05-2007 08:10 PM
Re: how to free the port
Are you using SSH?
The port number 6010 is generally used for the 10th X11 display. If you use SSH with X11 forwarding, this is the first display number that SSH uses for X11 forwarding by default. This maps to DISPLAY value "
If this port is not free when a connection with X11 forwarding is requested, SSH automatically uses port 6011 or above.
If you need the port 6010 for other purposes, edit the sshd_config file (usually in /opt/ssh/etc) to change the X11DisplayOffset value from 10 to 11, restart sshd, disconnect all existing SSH connections with X11 forwarding enabled, and the port should become free.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-05-2007 08:19 PM
тАО03-05-2007 08:19 PM
Re: how to free the port
netstat -an | grep '.6010 '
Since "." is special to grep, shouldn't that be:
netstat -an | fgrep '.6010 '
or:
netstat -an | grep '\.6010 '
(Can anyone spare 2 points? ;-)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-05-2007 09:08 PM
тАО03-05-2007 09:08 PM
Re: how to free the port
Thus rajeshraj actually hasn't grepped for port 6010 as intended to but port 16010 (didn't he?).
I prefer awk or perl, but because of more widespread availability of awk stick rather with it, like e.g.
# netstat -an -f inet|awk '$4~/\.5666$/'
tcp 0 0 *.5666 *.* LISTEN
tcp 0 0 10.25.9.136.5666 10.25.8.8.64525 TIME_WAIT
(above it's the port of NRPE for my Nagios monitoring)
I would think that a TIME_WAIT socket state is nothing to worry about as this is the final stage before the socket is actually closed,
and it is only reached after the remote end has acknowledged the close request as well.
Most of the times one has rather to fight with sockets lingering in FIN_WAIT_2 stage where the remote end yet hasn't acknowledged the closing (maybe because some firewall severed the connection after a certain time of inactivity)
I would assume that the TIME_WAIT sockets will simply disappear after a while.
I'm sure that by some ndd param you can enforce a shutdown after a certain timeout but one normally shouldn't activate this because of the peril of possible data loss.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-06-2007 12:59 AM
тАО03-06-2007 12:59 AM
Re: how to free the port
> netstat -an | fgrep '.6010 '
> or:
> netstat -an | grep '\.6010 '
Probably the latter. I doubt that grep cares
whether the dot is quoted using "" or ''.
At least I got the space right. Sigh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-06-2007 01:51 AM
тАО03-06-2007 01:51 AM
Re: how to free the port
I know some applications are very picky about the entry in /etc/services, even though the port is not actively used.
grep 6010 /etc/services
Do you see anything ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-06-2007 02:00 AM
тАО03-06-2007 02:00 AM
Re: how to free the port
If you think this issue is resolved please assign points and close this thread.
Looks like you have not assigned points at all (0 out of 26) assigning points is a nice way to appreciate the people who are spending their valuable time helping you.
Rgds
HGN