Code Monkey home page Code Monkey logo

microsofthostspicker's Introduction

Microsoft Hosts Picker - M$๐Ÿ’Š

A simple Python scrip for you to select the fastest IP for Microsoft services.

As you know, Microsoft services often don't work properly in a mysterious country (a big country west of North Korea, north of Vietnam, and south of Russia). Thanks to the powerful network technology of this country, DNS often resolves Microsoft services to inappropriate IPs. This script was created to solve this problem.

So, enjoy it!

Get Started

You need install ping3 at first.

  • If you met "permission denied", you may need to run this as root.
pip install ping3

Download the latest ZIP from the repo, unzip the ZIP archive to your preferred location and run the following command:

.\MicrosoftHostsPicker.py

Next, all processes are automated. The script will automatically pick the best IP. The output results is in the "hosts" file in the same directory as "MicrosoftHostsPicker.py". Please select the hosts you need to add to your system.

You only need to replace the original abnormal IPs without overwriting them all, otherwise it may be counterproductive (after all, my collection of IPs is not complete). For example, Office Download and Windows Update have CDN nodes all over the world, so you don't need to manually configure Hosts unless your DNS resolves incorrectly.

microsofthostspicker's People

Contributors

butaikirin avatar cclauss avatar

Watchers

 avatar

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.