1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

[Python] How to get client IP address using python bottle framework

Discussão em 'Python' iniciado por Stack, Maio 27, 2025.

  1. Stack

    Stack Membro Participativo

    I need client IP address using python. I have tried below code but its not working in server:

    from socket import gethostname, gethostbyname
    ip = gethostbyname(gethostname())
    print ip


    On the server, I get '127.0.0.1' every time. Is there any way to find IP address of the client?

    Continue reading...

Compartilhe esta Página