Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: kittonium on April 20, 2018, 01:22:39 AM

Title: Guests have IPs but Members dont?
Post by: kittonium on April 20, 2018, 01:22:39 AM
Hi, I have a problem with my SMF forum

(https://i.imgur.com/BCjhJMi.png)

As you can see in the picture, users do not have IP's (0.0.0.0)
but guests have valid IP's.

How can I fix this?
what are the files that set a members ip so i can undo changes that a mod mightve done?
Title: Re: Guests have IPs but Members dont?
Post by: Deaks on April 20, 2018, 04:19:25 AM
is your admin error log showing any errors?  what did you do on your forum before this started showing?  Have you tried running the maintenance through the admin panel??
Title: Re: Guests have IPs but Members dont?
Post by: Illori on April 20, 2018, 05:07:56 AM
it is possible those with 0.0.0.0 ip addresses have ipv6 ip addresses and SMF 2.0 does not support that.
Title: Re: Guests have IPs but Members dont?
Post by: kittonium on April 20, 2018, 11:13:25 AM
Hi, I made a fix

replaced all the
$_SERVER['HTTP_X_FORWARDED_FOR']

with

$_SERVER['REMOTE_ADDR']

now everything works :)