Request IP from Server

All other Source.Python topics and issues.
canibozz
Member
Posts: 32
Joined: Wed Apr 11, 2018 7:55 am

Request IP from Server

Postby canibozz » Wed May 09, 2018 3:24 pm

Hello guys,

anyone knows what Steam does with the IP when it comes to Requesting?
Iam sending a Request to my API via Python.
My API is fetching the IP of the requester and comparing with a DB.
In my DB i saved the IP of my server let's say:

Code: Select all

133.71.133.713:27015


The fetched IP via $_SERVER['HTTP_X_FORWARDED_FOR'] (because of Cloudflare protection) is a IPV6 like this:

Code: Select all

1337:1x3x3:cafe:7x1:0:0:0:1"



What is Steam doing?
Why is my Request IP not my Server IP?

Any clues?

Cheers,
CANi
User avatar
Ayuto
Project Leader
Posts: 2193
Joined: Sat Jul 07, 2012 8:17 am
Location: Germany

Re: Request IP from Server

Postby Ayuto » Wed May 09, 2018 8:30 pm

Steam has nothing to do with that. Are you sure the IPv4 address isn't the same like the IPv6 address?
canibozz
Member
Posts: 32
Joined: Wed Apr 11, 2018 7:55 am

Re: Request IP from Server

Postby canibozz » Wed May 09, 2018 10:48 pm

Okay, it was an error with my gaming server. It had ipv4 and ipv6 enabled.
I disabled it and now it works.

Cheers!

Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 28 guests