IP addresses and JS.

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

    IP addresses and JS.

    Am I right in thinking that when you connect to a website via a proxy,
    only Java (not JS) can get one's IP address?

    Thanks.
  • Mick White

    #2
    Re: IP addresses and JS.

    Me wrote:[color=blue]
    > Am I right in thinking that when you connect to a website via a proxy,
    > only Java (not JS) can get one's IP address?
    >[/color]



    Not *only* Java, but not Javascript, for sure.
    Mick
    ..

    Comment

    • Randy Webb

      #3
      Re: IP addresses and JS.

      Me said the following on 9/10/2005 6:04 AM:
      [color=blue]
      > Am I right in thinking that when you connect to a website via a proxy,
      > only Java (not JS) can get one's IP address?[/color]

      No, Java is not the only way to attempt to get one's IP Address, but JS
      can't get it at all.

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

      Comment

      • Evertjan.

        #4
        Re: IP addresses and JS.

        Mick White wrote on 10 sep 2005 in comp.lang.javas cript:
        [color=blue]
        > Me wrote:[color=green]
        >> Am I right in thinking that when you connect to a website via a proxy,
        >> only Java (not JS) can get one's IP address?
        >>[/color]
        >
        > Not *only* Java, but not Javascript, for sure.[/color]

        Javascript can get the IP-address, but only serverside.

        Try j[ava]script on an ASP platform.

        =============== =

        Clientside the IP-address as seen by the server
        is often not even available, as the client machine
        only "sees" the local IP bihind router and/or proxi.

        And that clientside iP is not available to in-browser javascript.

        =============== =

        Java and javascript have nothing in common but the name.

        --
        Evertjan.
        The Netherlands.
        (Replace all crosses with dots in my emailaddress)

        Comment

        • Boobie

          #5
          Re: IP addresses and JS.

          OK I have been wondering about this for a long time....
          please be more clear....I really like a definitive word.

          1) How else exactly, other than via Java, can server-side find out REAL IP
          of client going thru HI-ANONIMITY proxy ?

          2) php ? can forum like vBulletin find REAL IP ?

          thanks

          "Randy Webb"[color=blue]
          > No, Java is not the only way to attempt to get one's IP Address, but JS
          > can't get it at all[/color]
          [color=blue]
          >Not *only* Java, but not Javascript, for sure.
          >Mick[/color]


          Comment

          • Randy Webb

            #6
            Re: IP addresses and JS.

            Boobie said the following on 9/10/2005 11:56 AM:[color=blue]
            > OK I have been wondering about this for a long time....
            > please be more clear....I really like a definitive word.
            >
            > 1) How else exactly, other than via Java, can server-side find out REAL IP
            > of client going thru HI-ANONIMITY proxy ?[/color]

            You ask the user.
            And wonder why they won't tell you. People use a HI-Anonymity proxy for
            a reason.

            What exactly do you think you need the IP for anyway?
            [color=blue]
            > 2) php ? can forum like vBulletin find REAL IP ?[/color]

            Since I don't know what vBulletin is, I can't answer that.

            And, please learn to quote.

            --
            Randy
            comp.lang.javas cript FAQ - http://jibbering.com/faq & newsgroup weekly
            Answer:It destroys the order of the conversation
            Question: Why?
            Answer: Top-Posting.
            Question: Whats the most annoying thing on Usenet?

            Comment

            • Evertjan.

              #7
              Re: IP addresses and JS.

              Boobie wrote on 10 sep 2005 in comp.lang.javas cript:
              [color=blue]
              > OK I have been wondering about this for a long time....
              > please be more clear....I really like a definitive word.
              >
              > 1) How else exactly, other than via Java, can server-side find out
              > REAL IP of client going thru HI-ANONIMITY proxy ?[/color]

              What is "REAL IP of client"?
              A server sees just the IP that it gets.

              This is independent of the computer language used.


              --
              Evertjan.
              The Netherlands.
              (Replace all crosses with dots in my emailaddress)

              Comment

              • Sanjay

                #8
                Re: IP addresses and JS.

                I think the person who posted the question wants to know the IP address
                of the client within a Local network, who is coming through a proxy to
                his site.

                Well as many of us would have guessed it is not possible unless you
                hack into the proxy, which is very subjective and difficult ;) besides
                that is not what we are looking at.

                Simply speaking the answer is NO, you cannot get the IP address.

                Tell me how would you know who exactly in a group wants a resource if a
                representative of a group keeps asking for the resource to you. unless
                you ask the representative ;)

                I dont think languages have any bearing on this very general question.

                Thanks and Regards

                Comment

                • Boobie

                  #9
                  Re: IP addresses and JS.

                  Exactly.
                  I was confused by earlier posts that seemed to suggest there are ways OTHER
                  than Java/Java Applet
                  that can sniff out the real IP.



                  "Sanjay"[color=blue]
                  > I dont think languages have any bearing on this very general question.[/color]


                  Comment

                  • Boobie

                    #10
                    Re: IP addresses and JS.

                    [color=blue]
                    >People use a HI-Anonymity proxy for a reason.[/color]

                    Yes, I use one for web forum and I have several reasons ;)
                    [color=blue]
                    > What exactly do you think you need the IP for anyway?[/color]

                    Well, I don't.
                    It's the other side that does smart-ass things based on client IPs.


                    Comment

                    • Me

                      #11
                      Re: IP addresses and JS.

                      Mick White wrote:
                      [color=blue]
                      > Me wrote:
                      >[color=green]
                      >> Am I right in thinking that when you connect to a website via a
                      >> proxy, only Java (not JS) can get one's IP address?
                      >>[/color]
                      >
                      >
                      >
                      > Not *only* Java, but not Javascript, for sure.
                      > Mick
                      > .[/color]

                      What other applications can get the Ip then?

                      Comment

                      • Me

                        #12
                        Re: IP addresses and JS.

                        Evertjan. wrote:
                        [color=blue]
                        >Mick White wrote on 10 sep 2005 in comp.lang.javas cript:
                        >
                        >
                        >[color=green]
                        >>Me wrote:
                        >>
                        >>[color=darkred]
                        >>>Am I right in thinking that when you connect to a website via a proxy,
                        >>>only Java (not JS) can get one's IP address?
                        >>>
                        >>>
                        >>>[/color]
                        >>Not *only* Java, but not Javascript, for sure.
                        >>
                        >>[/color]
                        >
                        >Javascript can get the IP-address, but only serverside.
                        >
                        >Try j[ava]script on an ASP platform.
                        >
                        >[/color]
                        So, IOW, when the client (that is the home Internet user) connects to a
                        server e.g. www.yahoo.com the server cannot get the client's IP using
                        JS, right?
                        [color=blue]
                        >============== ==
                        >
                        >Clientside the IP-address as seen by the server
                        >is often not even available, as the client machine
                        >only "sees" the local IP bihind router and/or proxi.
                        >
                        >And that clientside iP is not available to in-browser javascript.
                        >
                        >============== ==
                        >
                        >Java and javascript have nothing in common but the name.
                        >
                        >
                        >[/color]

                        Comment

                        • Me

                          #13
                          Re: IP addresses and JS.

                          Randy Webb wrote:
                          [color=blue]
                          > Me said the following on 9/10/2005 6:04 AM:
                          >[color=green]
                          >> Am I right in thinking that when you connect to a website via a
                          >> proxy, only Java (not JS) can get one's IP address?[/color]
                          >
                          >
                          > No, Java is not the only way to attempt to get one's IP Address, but
                          > JS can't get it at all.
                          >[/color]
                          Just to clarify here I am talking about when a home user connects to a
                          company for example website.

                          Comment

                          • David Dorward

                            #14
                            Re: IP addresses and JS.

                            Me wrote:
                            [color=blue][color=green]
                            >>Javascript can get the IP-address, but only serverside.
                            >>Try j[ava]script on an ASP platform.[/color][/color]
                            [color=blue]
                            > So, IOW, when the client (that is the home Internet user) connects to a
                            > server e.g. www.yahoo.com the server cannot get the client's IP using
                            > JS, right?[/color]

                            JavaScript (or pretty much anything else) running on the server can get the
                            IP address of the machine that made the request, which may be the user's
                            workstation, but could also be a proxy server or similar.

                            --
                            David Dorward <http://blog.dorward.me .uk/> <http://dorward.me.uk/>
                            Home is where the ~/.bashrc is

                            Comment

                            • Me

                              #15
                              Re: IP addresses and JS.

                              David Dorward wrote:
                              [color=blue]
                              >Me wrote:
                              >
                              >
                              >[color=green][color=darkred]
                              >>>Javascript can get the IP-address, but only serverside.
                              >>>Try j[ava]script on an ASP platform.
                              >>>
                              >>>[/color][/color]
                              >
                              >
                              >[color=green]
                              >>So, IOW, when the client (that is the home Internet user) connects to a
                              >>server e.g. www.yahoo.com the server cannot get the client's IP using
                              >>JS, right?
                              >>
                              >>[/color]
                              >
                              >JavaScript (or pretty much anything else) running on the server can get the
                              >IP address of the machine that made the request, which may be the user's
                              >workstation, but could also be a proxy server or similar.
                              >
                              >
                              >[/color]
                              My specific question though, was could JavaScript "see behind" a proxy
                              or could it only get the IP address that was used to connect to the
                              server, which would be the proxy address?

                              Comment

                              Working...