Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to use Google Chrome as a proxy server?

In my particular network environment the Google chrome executable can access via an authenticated outgoing proxy server external web sites. Other executables however (when pointing to that outgoing proxy) are not able to do so.

I now have the idea to use Chrome itself as a local proxy for other executables like git or pip. - Is this possible, say, with a Chrome extension or with a tool that uses Chrome in a headless mode to connect to the Internet?

To clarify, I am not asking how to configure the proxy settings inside Chrome - I have successfully done this. I am asking how I can set up Chrome to receive HTTP(S) requests from other local programs and pass the requests on as an intermediate proxy (to the outgoing proxy specified in Chrome's settings).

like image 538
waldalla Avatar asked Oct 28 '18 03:10

waldalla


People also ask

Does Chrome have built in proxy?

Google Chrome allows you to set up a proxy server connection from its in-built proxy settings menu. For your computer's proxy settings, follow these steps; Go to the chrome settings menu. Click on the Show advanced settings link.

Can I use Google as a proxy?

You can still bypass this and access the blocked sites by using proxies. You can use Google as your proxy, and there are a couple of ways to do it.


1 Answers

On its own, no: Chrome will not open a port that other software can connect to. Even WebRTC requires an intermediate server to begin a peer to peer connection between browsers.

However Chrome supports Native Messaging, which means it will execute a specific native application that already exists on the system.

With this set up you can have:

  • a native application that accepts incoming connections and forwards data to the extension.
  • the extension listens to messages from the application and sends them via Chrome elsewhere on the internet.
like image 111
fregante Avatar answered Oct 29 '22 03:10

fregante