How do I display a users IP address on the captive portal login page??
-
I'm looking for some code to display a users IP address on the captive portal login page.
all the users have static IP address assigned to them according to there MAC address by the DHCP. i want them to be able to see there IP address on the captive portal login page so that wen they visit the bandwidthd link on the page they know which IP to look at.
i have tried quite a few code bits but nothing seems to work.
Thanks alot guys
by the way pfsense runs extremely well. i'm very impressed!
-
I think the login page only supports basic html.
-
Is there not a way to use another page which you can load in to the captive portal file manager and use a .php from there. i believe it can use php??
-
You could use a code like this if the login page supports php, but it does not seem to support anything else than basic html.
echo 'User IP Address: ' .$_SERVER['REMOTE_ADDR']. ''; ?>
-
You could use a code like this if the login page supports php, but it does not seem to support anything else than basic html.
echo 'User IP Address: ' .$_SERVER['REMOTE_ADDR']. ''; ?>
The logon page only does basic html but in the captive portal file manager it says somthing about executing php files. the code above doesn't work on the logon page. but it is the right code
-
The default page does not do php. You need to use a html meta redirect or javascript to redirect to a custom uploaded page that has been added from the file manager.