Skip to main content

Sticky Sessions

By default, each request you send over Aluiva will be routed to a different IP address. For example, if you AI agent loads a website without sticky sessions enabled, each of the various requests it sends to load page content will have a different IP address.

Request 1 IP: 1.1.1.1
Request 2 IP: 2.2.2.2
Request 3 IP: 3.3.3.3

With sticky sessions enabled, each request has a specific session ID, and all requests with the same session ID are routed to the same IP address. By using the same session ID for all requests in a session (e.g. loading a specific website), you'll use the same IP address for that session.

Request 1 IP: 1.1.1.1
Request 2 IP: 1.1.1.1
Request 3 IP: 1.1.1.1

Enabeling Sticky Sessions

Enable sticky sessions by adding the -session parameter and a session ID to your Gateway Node username. The session ID can be any alphanumeric string that you generate.

Example username with sticky sessions enabled:
myusername-session-abc123

Examples: Default Behavior vs Sticky Sessions

Sticky Sessions Disabled (default)

Each request will use a different IP address. Username: myusername

Request 1 IP: 1.1.1.1
Request 2 IP: 2.2.2.2
Request 3 IP: 3.3.3.3

Sticky Sessions Enabled

Each request with the same session ID will use the same IP address.

Session 1:
Username: myusername-session-abc123

Request 1 IP: 1.1.1.1
Request 2 IP: 1.1.1.1
Request 3 IP: 1.1.1.1

Session 2:
Username: myusername-session-def456

Request 1 IP: 2.2.2.2
Request 2 IP: 2.2.2.2
Request 3 IP: 2.2.2.2

Session 3:
Username: myusername-session-ghi789

Request 1 IP: 3.3.3.3
Request 2 IP: 3.3.3.3
Request 3 IP: 3.3.3.3

Benefits

  • Session Consistency: Maintains the same IP address throughout the user's session
  • Reduced Authentication Issues: Prevents websites from flagging multiple IP changes as suspicious activity
  • Better Performance: Eliminates the overhead of establishing new connections for each request
  • Compatibility: Works better with websites that implement strict session tracking

Sticky Session Duration

When using sticky sessions, requests using the same session ID will be routed to the same IP address for as long as it is available. If an IP address is no longer available, requests will be routed to a new IP address.

Because mobile IP addresses are assigned by mobile carriers, we cannot control how long any given IP address will be available for. You should generally expect the max life of an IP address to be 10 minutes.