This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

How to view the destination IP of a packet when connecting behind a proxy?

0

Hi, I am behind a proxy and all the packets that I send have my proxy: 192.168.1.5 as a destination, I do not know how to see their actual destination (destination's IP). Thanks a lot for your help

asked 02 Feb '11, 10:37

intuition_man's gravatar image

intuition_man
1111
accept rate: 0%


One Answer:

2

On the client side you can't see the IP address that the proxy will connect to. However, you can extract the dns name it will connect to in the Host: header of the HTTP request. You can then do the name resolving yourself, but this is no 100% guarantee that the Proxy uses the same address. This is because it:

  • might use a different nameserver that returns a different IP address
  • the same name server might respond with a different IP address to different clients
  • there might be multiple IP addresses returned and you don't know which one the proxy picked

answered 02 Feb '11, 10:42

SYN-bit's gravatar image

SYN-bit ♦♦
17.1k957245
accept rate: 20%