Get client IP from behind a firewall?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mats

    #1

    Get client IP from behind a firewall?

    Hi!

    I would like to get a web client's IP where the client is behind a firewall.
    I googled but hasn't found any solution with javascript that work's. There
    seems to be a java applet that can do this, but i would like the applet to
    put it into a "hidden" tag or into a textbox on the HTML page, so when the
    user clicks "OK" it will be posted to my PHP script.

    Any ideas, link's, tip are most welcome!

    Thank's!


  • Randy Webb

    #2
    Re: Get client IP from behind a firewall?

    Mats wrote:
    [color=blue]
    > Hi!
    >
    > I would like to get a web client's IP where the client is behind a firewall.
    > I googled but hasn't found any solution with javascript that work's.[/color]

    Thats because there is no solution to obtaining the IP address via
    Javascript.
    [color=blue]
    > There seems to be a java applet that can do this, but i would like the applet
    > to put it into a "hidden" tag or into a textbox on the HTML page, so when the
    > user clicks "OK" it will be posted to my PHP script.[/color]

    And why do you think you need my IP Address? It's worthless to you as it
    changes at least 3 times a day.

    [color=blue]
    > Any ideas, link's, tip are most welcome![/color]

    Stop trying to determine something that doesn't matter to begin with.
    [color=blue]
    > Thank's![/color]

    Welcome.

    --
    Randy
    comp.lang.javas cript FAQ - http://jibbering.com/faq

    Comment

    • Lee

      #3
      Re: Get client IP from behind a firewall?

      Mats said:[color=blue]
      >
      >Hi!
      >
      >I would like to get a web client's IP where the client is behind a firewall.[/color]

      Why would you possibly want that?
      Why not look for a script to determine their shoe size?

      Comment

      • Robert

        #4
        Re: Get client IP from behind a firewall?

        In article <JWn5d.4163$d5. 32525@newsb.tel ia.net>,
        "Mats" <spamenot.mog.p ettersson@telia .com> wrote:
        [color=blue]
        > I would like to get a web client's IP where the client is behind a firewall.[/color]

        What do you want to do with the IP address. Perhaps if it is a security
        concern, people in this form or some other forum could off some doable
        suggestions.

        I'd like to know how people manage a security. How do people know the
        data is coming back from the same computer that they sent the data and
        how do they track that it is the same computer through three
        interactions.

        Pointers to a simple explanation of this would be helpful.

        ( Don't worry to much about my questions.. It isn't pressing. )

        Robert

        Comment

        • Mats

          #5
          Re: Get client IP from behind a firewall?


          "Randy Webb" <HikksNotAtHome @aol.com> skrev i meddelandet
          news:t_idnU15rd 1HjcvcRVn-gw@comcast.com. ..[color=blue]
          > Mats wrote:
          >[color=green]
          > > Hi!
          > >
          > > I would like to get a web client's IP where the client is behind a[/color][/color]
          firewall.[color=blue][color=green]
          > > I googled but hasn't found any solution with javascript that work's.[/color]
          >
          > Thats because there is no solution to obtaining the IP address via
          > Javascript.
          >[color=green]
          > > There seems to be a java applet that can do this, but i would like the[/color][/color]
          applet[color=blue][color=green]
          > > to put it into a "hidden" tag or into a textbox on the HTML page, so[/color][/color]
          when the[color=blue][color=green]
          > > user clicks "OK" it will be posted to my PHP script.[/color]
          >
          > And why do you think you need my IP Address? It's worthless to you as it
          > changes at least 3 times a day.[/color]

          I don't need your IP, i need the IP of the machines of the sites where i
          work. I'm about doing an inventory of IP adresses. I thought it would save a
          lot of work if i could email a link to a webpage where everybody could fill
          in their name/location/section and press submit and all went nicely into a
          database. It's too complicated for many users to have to find out their own
          IP (this involves about 200 users).

          This works fine however on our local and normally routed net's because we
          don't have a firewall between them and i can use PHP's
          $_SERVER['REMOTE_ADDR'], however som offices are linked up to us by VPN and
          ADSL through the internet and then i only get their dynamic IP from the
          outside of their firewall.
          [color=blue][color=green]
          > > Any ideas, link's, tip are most welcome![/color]
          >
          > Stop trying to determine something that doesn't matter to begin with.
          >[color=green]
          > > Thank's![/color]
          >
          > Welcome.
          >
          > --
          > Randy
          > comp.lang.javas cript FAQ - http://jibbering.com/faq[/color]


          Comment

          • Fred Oz

            #6
            Re: Get client IP from behind a firewall?

            [color=blue]
            > I don't need your IP, i need the IP of the machines of the sites where i
            > work. I'm about doing an inventory of IP adresses. I thought it would save a[/color]

            Your best bet is to send you users instructions on where to get the IP
            address from (it's really not very hard) or install a small app on each
            machine that reports the IP address (like where I work). The reason the
            sys admins want it is to get remote access the PC - they ring up, ask me
            to run the app (it's in the system tray), I tell them the address, they
            use it to log in, I click a "yes, allow this user access" dialog, and
            they do their thing.

            JavaScript can't help.

            Fred

            Comment

            Working...