LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   how can a host outside a private network know the actual sender's ip ?? (https://www.linuxquestions.org/questions/linux-networking-3/how-can-a-host-outside-a-private-network-know-the-actual-senders-ip-569595/)

rs_vijay 07-15-2007 05:11 PM

how can a host outside a private network know the actual sender's ip ??
 
hi everyone,
we have a private class B network 172.31 subnetted. To connect to the internet we use some proxy servers connected to a router n then to the Internet.
I am a networking newbie and earlier i thought when a http request is sent using a proxy , the packet might be sent from the other i-face of the router i.e connected to Internet which has some ip other than 172.31 , but when i was browsing ip2location.com i found that it was displaying my private ip address n obviously that one of the router's..

how can they manage to know about a host on a private network??
unaware of much about PHP n web designing,firstly i thought they might be using some applet kind of thing in their HTML source code n know the private ip by running appropriate prog. on the client side.. but even that wasn't true.. here is a segment of the html source of that web page
Code:

<TD class="fontgraysmall" width="65%">
 <span id="Livedemo1_lblIpAddress"
  class="fontgraysmall">172.31.85.140</span></TD>

which is simple html n nothing else.. could someone plzz clarify how do they manage to do this??

thanx in advance...
vijay

jschiwal 07-15-2007 05:17 PM

If they displayed your IP address, then they probably are running a java script program in your browser which displays your IP address.

Ammad 07-15-2007 08:31 PM

dear,

this is due to squid configuration. you can block it throught squid. currently i am using windows xp, when i boot linux, i will send you config tag.


All times are GMT -5. The time now is 03:31 PM.