Skip to content

Instantly share code, notes, and snippets.

@cursedcoder
Created March 31, 2014 11:43
Show Gist options
  • Save cursedcoder/9890536 to your computer and use it in GitHub Desktop.
Save cursedcoder/9890536 to your computer and use it in GitHub Desktop.
cursedcoder@localhost ~/Projects/socks ±master[√] » php examples/server.php &
[1] 51255
SOCKS server listening on localhost:9050
cursedcoder@localhost ~/Projects/socks ±master[√] » php examples/server-middleman.php &
[2] 51290
SOCKS server listening on localhost:9051 (which forwards everything to SOCKS server 127.0.0.1:9050)
cursedcoder@localhost ~/Projects/socks ±master[√] » php examples/client.php
Demo SOCKS client connecting to SOCKS server 127.0.0.1:9051
FAIL: connection to www.google.com:80 failed: message: Unable to connect to socks server
previous: Unable to connect to socks server
previous: Connection refused
EXPECTED: connection to www.google.commm:80 failed: message: Unable to connect to socks server
previous: Unable to connect to socks server
previous: Connection refused
EXPECTED: connection to www.google.com:8080 failed: message: Unable to connect to socks server
previous: Unable to connect to socks server
previous: Connection refused
FAIL: connection to ssl://www.google.com:443 failed: message: Unable to connect to socks server
previous: Unable to connect to socks server
previous: Connection refused
EXPECTED: connection to ssl://www.google.com:80 failed: message: Unable to connect to socks server
previous: Unable to connect to socks server
previous: Connection refused
EXPECTED: connection to ssl://www.google.com:8080 failed: message: Unable to connect to socks server
previous: Unable to connect to socks server
previous: Connection refused
STOP - stopping mainloop after 8 seconds
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment