request.local()
Access:
public

This is the local address class. It contains information about the local address. The local address is the address on the server the client connected to.

Summary

Name
Description
Returns the IP connected to by the client.
Returns the port connected to by the client.

Functions

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

This function will return the IP address connected to by the client.

Examples

req.local().address();
// -> will return the IP connected to by the client.

Returns

Type
String
Description
The IP connected to by the client.
.port()
Access:
public
Summary:
Returns the port connected to by the client.

This function will return the port connected to by the client.

Examples

req.local().port();
// -> will return the port connected to by the client.

Returns

Type
String
Description
The port connected to by the client.