serp-spider / proxy-server

:spider: Simple proxy server for testing puspose
Other
3 stars 2 forks source link

should this proxy work? #1

Open huglester opened 7 years ago

huglester commented 7 years ago

Hello,

so I started the proxy like in the readme. I keeps running in the CLI (on separate PC)

while I try to use the proxy, I get this: HP Fatal error: Uncaught Serps\HttpClient\CurlClient\CurlException: Curl was unable to process the request. Error code:7. Message : "Failed to connect to IP.AD.RE.SS port 20106: Connection refused"" in /Users/huglester/Projects/valet/spider/vendor/serps/http-client-curl/src/CurlClient/Curl.php:40

I tried switching all three ports - no luck. Is there anything else I can do?

Thanks

gsouf commented 7 years ago

Hi,

I tryed with localhost: curl -x http://localhost:20106 http://httpbin.org/ip

that should work with remote access too, if your network allows it. Did you check that the computer that runs the proxy server is reacheable from the computer that requests through the proxy?

huglester commented 7 years ago

Hey, strange...

maybe it is because the example runs only on ipv6 ? tcp6 0 0 ::1:20104 ::: LISTEN
tcp6 0 0 ::1:20105 :::
LISTEN
tcp6 0 0 ::1:20106 :::* LISTEN

Because I do not see those ports in ipv4 part of netstat?

COmputer is reachable, yeah, telneting localhost 20106 - works , but from outside gives could not connect. I will try to investigate further