NYUCCL / psiTurk

An open platform for science on Amazon Mechanical Turk.
https://psiturk.org
MIT License
277 stars 140 forks source link

Document sandbox testing behind a router #74

Closed jbmartin closed 10 years ago

jbmartin commented 10 years ago

Recently, I was trying to test an experiment at home using the ad server but kept getting Error 1015. Turns out that psiturk.org verifies if there is a valid experiment running at the host listed in the config.txt, so using localhost will fail. To get around this, I forwarded my router's port 22362 to my laptop's port 22362 using my Linksys' admin page (if needed, I can add instructions). Lastly, I updated the host parameter in config.txt to reflect my external IP address, which I found by running wget -qO- http://ipecho.net/plain; echo in my terminal.

gureckis commented 10 years ago

yes, using the model of "host your experiment on your own computer" there's really no way around this. however, the debug command skips the ad server and uses a local ad route so you can still do lots of testing. but once you go live with ad server you need a direct Internet accessible address, which can require port forwarding on most home wifi connections.

On Jan 29, 2014, at 2:09 AM, "Jay B. Martin" notifications@github.com wrote:

Recently, I was trying to test an experiment at home using the ad server but kept getting Error 1015. Turns out that psiturk.org verifies if there is a valid experiment running at the host listed in the config.txt, so using localhost will fail. To get around this, I forwarded my router's port 22362 to my laptop's port 22362 using my Linksys' admin page (if needed, I can add instructions). Lastly, I updated the host parameter in config.txt to reflect my external IP address, which I found by running wget -qO- http://ipecho.net/plain; echo in my terminal.

— Reply to this email directly or view it on GitHub.

gureckis commented 10 years ago

This issue is discussed in the FAQ part of the docs now: http://psiturk.readthedocs.org/en/latest/faq.html

We can revisit when there is a particular solution in mind, but currently the flexibility of the local server to execute custom code outweighs the downside of having to configuring a inbound port/ip. In the future psiturk.org could offer a Javascript accessible API which could bypass some of the local server stuff.