Closed tarekxxx closed 1 year ago
Since all the connections that your PHP receives comes from the ::1 IP you will have to get the original IP from what ngrok tells you it is, sometimes those kinds of tunneling services adds the original IP into the call under the name X-Forwarded-For
or similarly named headers.
So you could try replacing REMOTE_ADDR
here to HTTP_X_FORWARDED_FOR
and it might work:
https://github.com/UnamSanctam/UnamWebPanel/blob/b8b30b7b0412fa2f817fb80df9b561291eddb186/UnamWebPanel/api/endpoint.php#L13
greeat bro worked <3 thanks for helping mate
how can fix ip showin with ngrok service its appear ::1 is IP