| java.lang.Object com.Yasna.forum.util.ClientIP
ClientIP | public class ClientIP (Code) | | This class is meant as a value holder for the IP information of the user's client.
This class will hold the IP addresses of the client. The local address is the local address of the client and
the remote address is the remote IP address of the client.
Please note that the client might be behind a firewall in that case the real IP address of his machine is different from
the IP address of that the server sees.
|
Constructor Summary | |
public | ClientIP(String localIP, String RemoteIP) This the constructor for the ClientIP. |
ClientIP | public ClientIP(String localIP, String RemoteIP)(Code) | | This the constructor for the ClientIP.
Parameters: localIP - is the actual IP address of the machine behind the firewall Parameters: RemoteIP - is the IP address the the application server sees. |
getLocalIP | public String getLocalIP()(Code) | | returns the actual IP address of the machine (browser)
|
getRemoteIP | public String getRemoteIP()(Code) | | returns the IP address that the application server sees
|
|
|