Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
In my college many proxy : port (like 144.16.192.245:8080)are using to get Internet connection, performance of each proxy changes, how can i decide which one is working well at particular time. is there any way to switch over them automatically ?
Click here to see the post LQ members have rated as the most helpful post in this thread.
You can generally ping the IP and get a response time.
$ ping -c 4 <IP>
64 bytes from ir1.fp.vip.sp2.yahoo.com (98.137.149.56): icmp_seq=2 ttl=47 time=71.5 ms
Ping all your options and the one with the fastest time (lowest number) is likely the best one (at the time of the ping). Perhaps not the best depending on how it reacts down stream. But it's a start. There probably is a way to automate it. I'm not familiar with said way at this time. And ping may not work if it's blocked by firewall or other quirks. And best might vary depending on what you're trying to reach downstream and not the proxy in general. Sometimes just finding one that works is about as good as it gets.
Whatever, benchmarking apparently has absolutely no bearing on determining which is best. In that case choose the one with the lowest number. It's obviously best as it's been in service the longest.
ping doesn't use 8080, that's generally used for http at the user level. But ping sends a different type of packet anyway.
The ping does 3 things.
1) verifies that the IP is valid (or not)
2) verifies that the network reaches that address (or not)
3) gives a response time in how long it takes to talk to said computer across the network.
(the lower the number the better)
Assuming it's not blocked by firewall, yours or theirs.
#3 is no guarantee of a particular proxy being best. As even though you can connect to it the fastest, it's no indication of how it performs on the other end of that chain. The only way to really know is to just use all of them and then adjust to the one that is best (at that particular moment in time for that particular use). It's all pretty much an effort in futility though. If your school had a better network you wouldn't need to do any of that. And it's not a skill that's going to make you millions or even minimum wage out in the real world.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.