mirror of
https://github.com/PrismarineJS/node-minecraft-protocol.git
synced 2024-12-20 12:32:26 -05:00
ebbd93f2b6
* Added README and more error Handling to client_socks_proxy example. * Lint fixing
43 lines
1 KiB
Markdown
43 lines
1 KiB
Markdown
### Socks5 Proxy example
|
|
|
|
- **!This Example only works with socks5 proxys!**
|
|
|
|
Make sure your proxy connection is working.
|
|
|
|
#### Testing proxy connections with curl on Unix systems or Command prompt on Windows:
|
|
```bash
|
|
curl -x "socks5://<proxyAddress>:<proxyPort>" "http://ifconfig.me"
|
|
```
|
|
If you see an ip address the proxy is working. If you see anything else it's not.
|
|
|
|
|
|
#### These Errors what do they mean????
|
|
```
|
|
FetchError: request to https://authserver.mojang.com/authenticate failed, reason: Socket closed
|
|
```
|
|
- The Proxy is not working
|
|
|
|
|
|
--------
|
|
```
|
|
SocksClientError: Socket closed
|
|
```
|
|
- General Socket error Bad Proxy/Proxy refuses the connection
|
|
|
|
--------
|
|
```
|
|
SocksClientError: connect ECONNREFUSED <some ip address>
|
|
```
|
|
- The Connection to the proxy Failed
|
|
|
|
--------
|
|
```
|
|
SocksClientError: Proxy connection timed out
|
|
```
|
|
- Destination Address is wrong/not reachable. Or the Proxy is not working.
|
|
|
|
--------
|
|
```
|
|
Connection Refused: Blocked by CloudFront/CloudFlare
|
|
```
|
|
- Proxy Ip has been banned/block by Cloudflare.
|