request.remote()
Access:
public

This is the remote address class. It contains information about the remote address. The remote address that was used by the client.

Summary

Name
Description
Returns the IP used by the client.
Returns the family of the IP used by the client.
Returns the port used by the client.

Functions

.address()
Access:
public
Summary:
Returns the IP used by the client.

This function will return the IP address used by the client.

Examples

req.remote().address();
// -> will return the client IP

Returns

Type
String
Description
The IP used by the client.
.family()
Access:
public
Summary:
Returns the family of the IP used by the client.

This function will return the family of the IP that was returned by the client.

Examples

req.remote().family();
// -> will return the family of the client IP

Returns

Type
String
Description
The family of the IP used by the client.
.port()
Access:
public
Summary:
Returns the port used by the client.

This function will return the port used by the client.

Examples

req.remote().port();
// -> will return the client port

Returns

Type
String
Description
The port used by the client.