Create a New Sticky Session

Create a new sticky session using proxy credentials to maintain a persistent IP address for stable connections.

Create a new sticky session using proxy credentials. Sticky sessions let you keep the same IP address longer, which is useful for tasks that need a stable connection, like managing social media accounts or web scraping. Knowing how to use sticky sessions can improve your proxy experience by making it more efficient and reliable.

Sticky Ports

Geonode provides specific ports for sticky sessions, ensuring a persistent IP session:

ProtocolPort Range
HTTP/HTTPS10000 - 10900
SOCKS512000 - 12010

Use sticky ports when you need a stable IP for session-based activities.

Request

Make a request using a sticky session by including the session ID in your username string:

curl -X "http://proxy.geonode.io:<port>" \
     --user "<geonode_username>-country-<country_code>-session-<session_id>:<geonode_password>" \
     --url "http://ip-api.com/json" \
     --header "Accept: application/json"

Parameters

The session ID can be any custom string (1-25 alphanumeric characters or underscores). As long as you keep sending requests with the same session ID, you will maintain the same proxy IP.

Response

200 Success

The response contains detailed geolocation information about the IP address assigned to your sticky session.

Response Fields

FieldTypeDescription
statusstringThe status of the request (e.g., "success")
continentstringThe continent where the IP is located
continentCodestringThe two-letter continent code
countrystringThe full name of the country
countryCodestringThe two-letter country code (ISO 3166-1 alpha-2)
regionstringThe region code
regionNamestringThe full name of the region
citystringThe name of the city
districtstringThe district name, if available
zipstringThe postal code associated with the IP
latnumberThe latitude coordinate
lonnumberThe longitude coordinate
timezonestringThe timezone of the IP location
offsetintegerThe time offset in seconds from UTC
currencystringThe currency code of the country
ispstringThe name of the Internet Service Provider
orgstringThe organization that owns the IP address
asstringThe Autonomous System (AS) number
asnamestringThe name associated with the AS number
mobilebooleanIndicates whether the connection is from a mobile network
proxybooleanIndicates whether the IP is a known proxy
hostingbooleanIndicates whether the IP is from a hosting provider
querystringThe queried IP address

Example Response

{
  "status": "success",
  "continent": "Africa",
  "continentCode": "AF",
  "country": "Algeria",
  "countryCode": "DZ",
  "region": "05",
  "regionName": "Batna",
  "city": "Batna City",
  "district": "",
  "zip": "05000",
  "lat": 35.5064,
  "lon": 6.0707,
  "timezone": "Africa/Algiers",
  "offset": 3600,
  "currency": "DZD",
  "isp": "4 djaweb de AS fawri",
  "org": "",
  "as": "AS36947 Telecom Algeria",
  "asname": "ALGTEL-AS",
  "mobile": false,
  "proxy": false,
  "hosting": false,
  "query": "XXX.XXX.XXX.XXX"
}

On this page