Getting client ipv4 with django

my configuration file:

# fly.toml app configuration file generated for tickets-server on 2024-07-02T19:15:46+03:00
#
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
#

app = 'tickets-server'
primary_region = 'cdg'
console_command = '/code/manage.py shell'

[build]

[deploy]
  release_command = "python manage.py migrate"

[env]
  PORT = '8000'

[http_service]
  internal_port = 8000
  force_https = true
  auto_stop_machines = true
  auto_start_machines = true
  min_machines_running = 1
  processes = ['app']

[[vm]]
  size = 'shared-cpu-1x'
  memory = "512mb"

[[statics]]
  guest_path = '/code/static'
  url_prefix = '/static/'

[[statics]]
  guest_path = '/code/files'
  url_prefix = '/files/'

[[mounts]]
  source = "files"
  destination = "/code/files"

The header I get:

'HTTP_FLY_CLIENT_IP': '2605:4c40:159:ad68:0:f5bc:e406:1'

My ips list:

VERSION IP                      TYPE                    REGION  CREATED AT       
v6      <reducted>              public (dedicated)      global  Jul 2 2024 16:23        
v4      66.241.125.90           public (shared)                 Jan 1 0001 00:00        

I can’t get the ipv4 of the client, can you help please?

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.