LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-24-2008, 02:22 AM   #1
kkpal
Member
 
Registered: Oct 2007
Posts: 101

Rep: Reputation: 15
Question 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.
 
Old 07-24-2008, 10:35 AM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
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?
 
Old 07-24-2008, 10:54 AM   #3
kenoshi
Member
 
Registered: Sep 2007
Location: SF Bay Area, CA
Distribution: CentOS, SLES 10+, RHEL 3+, Debian Sarge
Posts: 159

Rep: Reputation: 32
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.

Last edited by kenoshi; 07-24-2008 at 10:59 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
check if I can download packages from repo through a proxy htamayo Debian 1 06-14-2008 07:03 PM
check the total data transfer (squid proxy ) deepak rawat Linux - Networking 8 04-20-2006 07:22 AM
apache slow, only fast when i check "Use a proxy server.... sabre81 Linux - Networking 1 08-05-2005 07:41 AM
How I can check my proxy server shahg_shahg Linux - Networking 0 01-17-2005 01:41 AM
Check connection speed chii-chan Linux - Newbie 1 09-24-2003 12:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration