Is it possible for me to display a users IP address on the login page??
-
Is it possible for me to display a users IP address assigned to them by the pfsense DHCP server on the login page?? i want to do this so that when the view bandwidthd which is a link on the page they know which IP is theres and view there statistics.
I know the login page is a basic html page but it says something in the captive portal file manager about using php but i don't know how to do it.
Thanks
-
put this where you want the ip to appear :
-
upload this page as youre pfsense portal page
HTML>
now it will send you to p.php afther 1 sec
p.php
echo " "; echo "Welkom youre ipadress = "; echo getenv('REMOTE_ADDR'); echo " "; ?> "> "> | ### usernaam | | | ### wachtwoord | | | | |
-
Why my code doesnt work ? (I did not try it, but i presume now that it doesnt work)
-
ehmm i don't see code from you ??
-
ehmm i don't see code from you ??
Second post in this thread:
put this where you want the ip to appear :
It wasn't inside a code block though, so not obvious :)
-
if you put that in a php page then it will work
in the example php portal page (3 post in topic) i have include it -
Thank you.
-
that dont work for me…it keeps reloading...
index.html
Loading...
captiveportal-portal.php
<form method="post" action="<?php echo $_GET[" portal_action"];="" ?="">"> | **Usuario:** | <label></label> | **@uprrp.edu** | | **Contraseña:** | <label></label> | | | | <label>" type="hidden"></label> | | </form>
whats wrong?
-
I found the problem ;D
-
I found the problem ;D
What was it ? :D
Do we have to supose that somethings is wrong with your posts ?
-
Since no one seems to bother with documenting this, and I just finished banging my head against this issue where the redirect just keeps reloading itself and not going to the page specified. To fix it you MUST do the quotation marks in the META HTTP-EQUIV line correctly:
Bad
Good
Hope this saves other people torment anguish and wasted time Googling.
I found the problem ;D
What was it ? :D
Do we have to supose that somethings is wrong with your posts ?