256cats / check-proxy

Advanced Node proxy checker (node proxy verifier, node proxy tester) with socks and https support
https://www.npmjs.com/package/check-proxy
MIT License
107 stars 40 forks source link

A basic question about "testHost" parameter #2

Closed cyclops24 closed 8 years ago

cyclops24 commented 8 years ago

Hi @256cats, First thanks for your awesome package. I have a basic question. http://ping.rhcloud.com/ not accessible from my internet. What is 'testHost` actually does? Is it optional?

256cats commented 8 years ago

Hi,

Yes, it's required. It's an address of server.js.

The library consists of server which checks incoming request parameters and a client which tries to connect through different proxies to the server (check example folder).

You need to run them both and server.js should be accessible from the internet.

So, testHost can be, for example, http://your-website.com:8080 if you run server.js on your-website.com, port 8080

cyclops24 commented 8 years ago

Thanks for your attention. But I need use you module in Meteor and I want to use server and client on a same machine. Is it possible with your module?

256cats commented 8 years ago

Yes, it will work fine if your machine has dedicated IP address accessible from the internet.

cyclops24 commented 8 years ago

Thanks for your rapid reply? What about local call? Is it possible to run app on localhost totaly without deploy to a server?

256cats commented 8 years ago

No, server.js should be accessible from internet for this library to work

cyclops24 commented 8 years ago

Thanks man. So do you have any plan to make this independent from server.js and express for using in other framework like meteor?

256cats commented 8 years ago

Not sure about that. Library doesn't depend on express. Server.js is just an example, you can use any other framework with it.

cyclops24 commented 8 years ago

@256cats Thanks man. So I can try using this in Meteor and ask my questions. I close this issue. :wink: