• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

Is it possible for me to display a users IP address on the login page??

Scheduled Pinned Locked Moved Captive Portal
12 Posts 7 Posters 36.2k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C
    craibo
    last edited by May 21, 2007, 5:25 PM

    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

    1 Reply Last reply Reply Quote 0
    • J
      JorgeAldoBR
      last edited by May 21, 2007, 7:35 PM

      put this where you want the ip to appear :

      1 Reply Last reply Reply Quote 0
      • J
        jeroen234
        last edited by May 22, 2007, 6:10 AM May 22, 2007, 5:37 AM

        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 
        
         |  |
        |  |  |
        
        
        1 Reply Last reply Reply Quote 0
        • J
          JorgeAldoBR
          last edited by May 23, 2007, 4:01 AM

          Why my code doesnt work ? (I did not try it, but i presume now that it doesnt work)

          1 Reply Last reply Reply Quote 0
          • J
            jeroen234
            last edited by May 24, 2007, 6:26 PM

            ehmm i don't see code from you ??

            1 Reply Last reply Reply Quote 0
            • C
              Cry Havok
              last edited by May 24, 2007, 6:35 PM

              @jeroen234:

              ehmm i don't see code from you ??

              Second post in this thread:

              @JorgeAldoBR:

              put this where you want the ip to appear :

              It wasn't inside a code block though, so not obvious :)

              1 Reply Last reply Reply Quote 0
              • J
                jeroen234
                last edited by May 24, 2007, 6:45 PM

                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

                1 Reply Last reply Reply Quote 0
                • J
                  JorgeAldoBR
                  last edited by May 25, 2007, 8:29 PM

                  Thank you.

                  1 Reply Last reply Reply Quote 0
                  • A
                    alexander007
                    last edited by Aug 8, 2007, 4:01 PM

                    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?

                    1 Reply Last reply Reply Quote 0
                    • A
                      alexander007
                      last edited by Aug 10, 2007, 12:28 AM

                      I found the problem ;D

                      1 Reply Last reply Reply Quote 0
                      • G
                        Gertjan
                        last edited by Aug 10, 2007, 9:13 AM

                        @alexander007:

                        I found the problem ;D

                        What was it  ? :D

                        Do we have to supose that somethings is wrong with your posts ?

                        No "help me" PM's please. Use the forum, the community will thank you.
                        Edit : and where are the logs ??

                        1 Reply Last reply Reply Quote 0
                        • D
                          docwho76
                          last edited by Aug 24, 2008, 7:23 PM

                          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.

                          @Gertjan:

                          @alexander007:

                          I found the problem ;D

                          What was it  ? :D

                          Do we have to supose that somethings is wrong with your posts ?

                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post
                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                            This community forum collects and processes your personal information.
                            consent.not_received