Operating System - HP-UX
1752554 Members
4718 Online
108788 Solutions
New Discussion

Re: Can't assign requested address

 
Mousa55
Super Advisor

Can't assign requested address

Hi,

 

when i try to ssh any server i facing this message and can't login to server

 

# ssh 192.168.1.5

ssh: connect to host 192.168.1.5 port 22: Can't assign requested address

#

and i trying that on ip's on the same subnet or vlan, and same issue.

other servers are working fine.

and also i can ssh to this server direct or from other servers and i can ping, traceroute or nslookup to any ip.

i don't know what is the cause of this issue. all configuration it's ok (gateway and .......)

 

the firewall team are not find any traffic from my system

please i need your support

 

Thanks

4 REPLIES 4
Mousa55
Super Advisor

Re: Can't assign requested address

Hi,

 

please your support.

 

Thanks

Laurent Menase
Honored Contributor

Re: Can't assign requested address

Usually this happens when there is no anonymous port available anymore, because for instance of

sockets which had not been closed by an application.

This problem is almost everytime due to an other application problem which don't close sockets

 

On 11.31, if not with last xport patch, when a connection is reset by peer, it comes back to BOUND state, which can cause anonymous port starvation if an application don't close reset socket, or socket in FINWAIT2 state.

 

with netstat -an check if there is any port avaliable larger than 49192 ( tcp_smallest_anon_port)

 

 

Mousa55
Super Advisor

Re: Can't assign requested address

Hi,

 

this is all port with CLOSE_WAIT and FIN_WAIT_2 state and larger than 49192. what can i do now.

please find the attached file. 

 

Thanks

Laurent Menase
Honored Contributor

Re: Can't assign requested address

1) find what process doesn't close the CLOSE_WAIT sockets if not using half closed sockets.

and have it fixed  (or restart it)

 

2) is just a workaround, change ndd param tcp_smallest_anon_port  to 32768 ( you can put less with cautions

to be sure none of your application will bind in the range

 

1) is the solution

2) is a workaround