Sitemap
Jun Xu

Jun Xu

Global Proxy Connection

8 min readSep 5, 2024

--

Global Proxy Connection Instructions

This document mainly introduces the connection instructions for Ace Data Cloud’s global proxy, including application methods, usage methods, and other specific content.

Trial Link

You can register our website and have a trial, we provide user interface and API, if you want to use our API, send me email: jun.xu708@gmail.com .

Application Method

To use the global service, you can first apply at the “Application Page”, and you will receive 1 free credit for your first application.

Press enter or click to view image in full size

If you are not logged in, you will automatically be redirected to the login page. After logging in, you can continue with your application.

Usage Method

After the application is complete, you can check your application results in the “Console,” as shown in the figure below:

Press enter or click to view image in full size

Click on “Credentials” to view the username and password for using the global proxy service, separated by a colon. The username is 8 characters long, and the password is 32 characters long, as shown in the figure below:

Press enter or click to view image in full size

This proxy is a rotating proxy, so you only need to set a fixed proxy address and port for use. The proxy address and port are global.proxy.acedata.cloud and 30007, respectively. This proxy supports HTTP/HTTPS/SOCKS protocols and can be used to request HTTP and HTTPS websites.

Note: This proxy can only be used outside mainland China. It cannot be used within mainland China.

Command Testing

Once you have the proxy username and password, the easiest way to test is by using the curl command line. If you haven’t installed it yet, please refer to https://curl.se/ for installation.

Assuming the current proxy username and password are 1f78266a:eff0896726224fa2a99fe82dd1f07562, you can test it using the following curl command:

curl -x 1f78266a:eff0896726224fa2a99fe82dd1f07562@global.proxy.acedata.cloud:30007 https://ipinfo.io

Here, we use the curl -x parameter to specify the proxy address. The default proxy protocol is HTTP/HTTPS. The URL requested is https://ipinfo.io, which can return the real IP address and geographical location of the requesting IP.

Note: The above username and password may be invalid; please replace them with your own username and password.

The output result is as follows:

{
"ip": "66.206.249.77",
"hostname": "host-66-206-249-77.public.eastlink.ca",
"city": "Kirkland Lake",
"region": "Ontario",
"country": "CA",
"loc": "48.1446,-80.0377",
"org": "AS11260 EastLink",
"postal": "P2N",
"timezone": "America/Toronto",
"readme": "https://ipinfo.io/missingauth"
}

As you can see, the returned country is CA, which represents Canada. If you run it again, you can get different results; each request uses a random IP exit.

Code Connection

Below is an example of how to set up the proxy using Python:

import requests

proxy = 'http://{proxyusername}:{proxypassword}@global.proxy.acedata.cloud:30007'

proxies = {
'http': proxy,
'https': proxy
}

for _ in range(3):
resp = requests.get('https://ipinfo.io', proxies=proxies)
print(resp.text)

Here, we first declare the proxy URL and assign it to the proxy variable. The protocol is HTTP, followed by the username and password for the tunnel proxy (i.e., the username and password displayed in the console, separated by a colon), then an @ symbol, followed by the proxy address and port.

Note: You need to replace {proxyusername}:{proxypassword} in the code above with your proxy username and password. The final result should look like proxy = 'http://1f78266a:eff0896726224fa2a99fe82dd1f07562@global.proxy.acedata.cloud:30007', noting that there are no { and } characters.

Next, we declare a proxies variable that configures two key-value pairs, with the keys named http and https, both set to the proxy variable, indicating that for HTTP and HTTPS websites, the requests will be made using the proxy defined in the proxy variable. We then define a loop to test the proxy three times.

Get Jun Xu’s stories in your inbox

Join Medium for free to get updates from this writer.

The output result is as follows:

{
"ip": "103.190.205.165",
"hostname": "assigned-for-client.adnsl.com",
"city": "Paltan",
"region": "Dhaka Division",
"country": "BD",
"loc": "23.7362,90.4143",
"org": "AS38203 ADN Telecom Ltd.",
"postal": "1000",
"timezone": "Asia/Dhaka",
"readme": "https://ipinfo.io/missingauth"
}
{
"ip": "74.111.25.181",
"hostname": "pool-74-111-25-181.syrcny.fios.verizon.net",
"city": "Syracuse",
"region": "New York",
"country": "US",
"loc": "43.0481,-76.1474",
"org": "AS701 Verizon Business",
"postal": "13201",
"timezone": "America/New_York",
"readme": "https://ipinfo.io/missingauth"
}
{
"ip": "207.113.168.248",
"city": "LaPorte",
"region": "Indiana",
"country": "US",
"loc": "41.6106,-86.7225",
"org": "AS13428 Surf Air Wireless, LLC",
"postal": "46350",
"timezone": "America/Chicago",
"readme": "https://ipinfo.io/missingauth"
}

As you can see, each run yields a random proxy IP, and the IP’s geographical location is indeed from different countries and cities worldwide.

Of course, the above proxy setup method is actually a relatively simple configuration.

In fact, the above code is equivalent to setting an additional Header — Proxy Authorization at the time of the request, so the above code can also be rewritten as follows:

import requests
import base64

proxy_host = 'global.proxy.acedata.cloud'
proxy_port = '30007'
proxyusername = '{proxyusername}' # 8 character username
proxypassword = '{proxypassword}' # 32 character password

credentials = base64.b64encode(
f'{proxyusername}:{proxypassword}'.encode()).decode()

proxies = {
'http': f'http://{proxyhost}:{proxyport}',
'https': f'http://{proxyhost}:{proxyport}'
}

headers = {
'Proxy-Authorization': f'Basic {credentials}'
}

for _ in range(3):
resp = requests.get('https://ipinfo.io',
proxies=proxies, headers=headers)
print(resp.text)

As you can see, here we have set the proxy username and password via the Proxy-Authorization request header (which needs to be Base64 encoded), achieving the same result as before.

For other languages, such as JavaScript’s axios, a similar setup method can also be used:

const axios = require("axios");
const base64 = require("base64");

const proxy_host = "global.proxy.acedata.cloud";
const proxy_port = "30007";
const proxyusername = "{proxyusername}"; // 8-character username
const proxypassword = "{proxypassword}"; // 32-character password

const credentials = base64.encode(`${proxyusername}:${proxypassword}`);

const proxies = {
http: `http://${proxyhost}:${proxyport}`,
https: `http://${proxyhost}:${proxyport}`,
};

const headers = {
"Proxy-Authorization": `Basic ${credentials}`,
};

for (let i = 0; i < 3; i++) {
axios
.get("https://ipinfo.io", { proxies, headers })
.then((resp) => console.log(resp.data))
.catch((err) => console.error(err));
}

The running effect is the same.

For the configuration methods in other languages, please refer to the above text and rewrite accordingly.

Region Filtering

We can filter the region by adding the region in the username, for example, if you want to choose a proxy from the United States, the original username is 1f78266a, you can change the username to 1f78266a-region-us, the above curl can be rewritten as follows:

curl -x 1f78266a-region-us:eff0896726224fa2a99fe82dd1f07562@global.proxy.acedata.cloud:30007 https://ipinfo.io

Region list:

Country or Region Name Country/Region Code United States us Hong Kong hk Andorra ad United Arab Emirates ae Afghanistan af Antigua and Barbuda ag Anguilla ai Albania al Armenia am Angola ao Antarctica aq Argentina ar American Samoa as Austria at Australia au Aruba aw Åland Islands ax Azerbaijan az Bosnia and Herzegovina ba Barbados bb Bangladesh bd Belgium be Burkina Faso bf Bulgaria bg Bahrain bh Burundi bi Benin bj Saint Barthélemy bl Bermuda bm Brunei bn Bolivia bo Dutch Caribbean bq Brazil br Bahamas bs Bhutan bt Bouvet Island bv Botswana bw Belarus by Belize bz Canada ca Cocos (Keeling) Islands cc Central African Republic cf Switzerland ch Chile cl Cameroon cm Colombia co Costa Rica cr Cuba cu Cape Verde cv Christmas Island cx Cyprus cy Czech Republic cz Germany de Djibouti dj Denmark dk Dominica dm Dominican Republic do Algeria dz Ecuador ec Estonia ee Egypt eg Western Sahara eh Eritrea er Spain es Finland fi Fiji fj Micronesia fm Faroe Islands fo France fr Gabon ga Grenada gd Georgia ge French Guiana gf Ghana gh Gibraltar gi Greenland gl Guinea gn Guadeloupe gp Equatorial Guinea gq Greece gr Guatemala gt Guam gu Guinea-Bissau gw Guyana gy Heard Island and McDonald Islands hm Honduras hn Croatia hr Haiti ht Hungary hu Indonesia id Ireland ie Israel il Isle of Man im India in British Indian Ocean Territory io Iraq iq Iran ir Iceland is Italy it Jersey je Jamaica jm Jordan jo Japan jp Cambodia kh Kiribati ki Comoros km Kuwait kw Cayman Islands ky Lebanon lb Liechtenstein li Sri Lanka lk Liberia lr Lesotho ls Lithuania lt Luxembourg lu Latvia lv Libya ly Morocco ma Monaco mc Moldova md Montenegro me French Saint Martin mf Madagascar mg Marshall Islands mh Macedonia mk Mali ml Myanmar mm Macau mo Martinique mq Mauritania mr Montserrat ms Malta mt Maldives mv Malawi mw Mexico mx Malaysia my Namibia na Niger ne Norfolk Island nf Nigeria ng Nicaragua ni Netherlands nl Norway no Nepal np Nauru nr Oman om Panama pa Peru pe French Polynesia pf Papua New Guinea pg Philippines ph Pakistan pk Poland pl Pitcairn Islands pn Puerto Rico pr Palestine ps Palau pw Paraguay py Qatar qa Réunion re Romania ro Serbia rs Russia ru Rwanda rw Solomon Islands sb Seychelles sc Sudan sd Sweden se Singapore sg Slovenia si Slovakia sk Sierra Leone sl San Marino sm Senegal sn Somalia so Suriname sr South Sudan ss São Tomé and Príncipe st El Salvador sv Syria sy Eswatini sz Turks and Caicos Islands tc Chad td Togo tg Thailand th Tokelau tk East Timor tl Tunisia tn Tonga to Turkey tr Tuvalu tv Tanzania tz Ukraine ua Uganda ug Uruguay uy Vatican City va Venezuela ve British Virgin Islands vg United States Virgin Islands vi Vietnam vn Wallis and Futuna wf Samoa ws Yemen ye Mayotte yt South Africa za Zambia zm Zimbabwe zw Congo (Brazzaville) cg Congo (Kinshasa) cd Mozambique mz Guernsey gg Gambia gm Northern Mariana Islands mp Ethiopia et New Caledonia nc Vanuatu vu French Southern Territories tf Niue nu United States Minor Outlying Islands um Cook Islands ck United Kingdom gb Trinidad and Tobago tt Saint Vincent and the Grenadines vc Taiwan tw New Zealand nz Saudi Arabia sa Laos la North Korea kp South Korea kr Portugal pt Kyrgyzstan kg Kazakhstan kz Tajikistan tj Turkmenistan tm Uzbekistan uz Saint Kitts and Nevis kn Saint Pierre and Miquelon pm Saint Helena sh Saint Lucia lc Mauritius mu Ivory Coast ci Kenya ke Mongolia mn

Fixed IP

Similar to the above content, we can achieve a fixed IP for a period of time by adding session in the username followed by a 5-digit fixed number. The effective period is about 10 minutes.

For example, if you want to achieve a fixed IP for a period of time, and the original username is 1f78266a, you can change the username to 1f78266a-session-12345, where 12345 remains the same, thus the IP will remain unchanged for a period of time. The above curl command can be rewritten as follows:

curl -x 1f78266a-session-12345:eff0896726224fa2a99fe82dd1f07562@global.proxy.acedata.cloud:30007 https://ipinfo.io

Purchase More

If your package has run out, you need to purchase more to continue using the proxy service.

To purchase more, please go to the “Application Page” and directly click the “Purchase More” button to make a selection. The more you buy at one time, the cheaper the unit price.

--

--