LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to check connection through proxy (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-check-connection-through-proxy-657881/)

kkpal 07-24-2008 02:22 AM

How to check connection through proxy
 
hi all

How to write a program which check connection between my system and any web server through proxy.

Suppose my system ip address: 192.168.10.11
Proxy Server ip address and port : 192.168.10.56 8080
and I want to check is there connection between my system and google.com.

Tinkster 07-24-2008 10:35 AM

Not a very specific question. The simplest answer: open your browser
and enter google.com in the location bar. Is that what you wanted to
hear?

kenoshi 07-24-2008 10:54 AM

You can use

netstat -ap | grep google

To see open connections to google.

However, keep in mind that a lot of websites uses no keepalive or short connection timeouts...best thing to do is to use a utility such as iptraf to monitor connections in real time, especially if you are trying to figure out whether or not your http traffic is being proxied or not.

If you just wanna see if you can get say www.google.com through proxy, write a script to use wget to get what you want.

Hope this helps.


All times are GMT -5. The time now is 01:57 PM.