SSLSession.getPeerPort

Returns the port number of the peer in this session. <P> For the server, this is the client's port number; and for the client, it is the server's port number. <P> This value is not authenticated and should not be relied upon. It is mainly used as a hint for <code>SSLSession</code> caching strategies.

@return the port number of the peer host, or -1 if no information is available.

interface SSLSession
int
getPeerPort
()

Meta