Code Monkey home page Code Monkey logo

yihttptunnel's Introduction

yihttptunnel

A simple java implementation of a transparent HTTP proxy to unlock region lock for xiaoyi camera, which simply forward all "api.xiaoyi.com" traffic to another http proxy in the Mainland China. I can not config squid or other http proxy to do it correctly, that's the reason for this project.

Before running this proxy you have to

  1. Set up a dns server with dnsmasq in your laptop, and config "api.xiaoyi.com" mapping to your laptop ip (google it if you don't know how to do :)).
  2. Log in to your wifi router and change the dns server to your new dns server (your laptop ip).

Then you can start this transparent http proxy on your laptop, since this is a simple java project you can compile and run it with JDK 8,

cd src
javac com/yihttptunnel/*.java
sudo java com.yihttptunnel.Server

If you prefer a HTTP proxy in Mainland China other than the default one, you can run

sudo java com.yihttptunnel.Server [proxyhost] [proxyport]

Note, the HTTP proxy must support HTTPS.

You will have to set up the above again when the camera restarts.


54.84.30.91 This is my own DNS server (and transparent HTTP proxy), which is working well for my camera. If you want to have a try you can simply specify the dns server with this IP on your wifi router. Note, I can not guarantee any reliability since it's just a single instance on Amazon AWS.

yihttptunnel's People

Contributors

huipengren avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

fone4u

yihttptunnel's Issues

Proxy login/password

Hello.
How to add login & password for remote proxy?

java.io.IOException: Unable to tunnel through proxy returns "HTTP/1.0 407 Proxy Authentication Required"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.