I tried what John mentioned, and got a connection failed error after about 10-15 seconds.<br>I also included serve/servlet and add #:listen-ip<br>
#f at the bottom of my application. The documentation also says to change the top of my application from<br><p><span class="hspace"> </span><span class="schememod">#lang</span><span class="hspace"> </span><span class="schemesymbol">web-server/insta</span> <br>
</p><p>to</p> (require web-server/servlet)<br> (provide/contract (start (request? . -> . response/c)))<br><br>but I'm not sure what the second line is doing, if that is a correct syntax or not or if I should change/add something to that line, and it is causing an error saying something like (undefined module in responce/c. )<br>
<br>I'm providing the code that I'm using in case anyone has the time to take a look and see if there is something I'm doing wrong.<br><br>Thanks,<br><br><div class="gmail_quote">On Tue, Apr 21, 2009 at 7:33 AM, Jay McCarthy <span dir="ltr"><<a href="mailto:jay.mccarthy@gmail.com">jay.mccarthy@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Another thing to do is to switch to serve/servlet and add #:listen-ip<br>
#f to the arguments.<br>
<font color="#888888"><br>
Jay<br>
</font><div><div></div><div class="h5"><br>
On Mon, Apr 20, 2009 at 10:02 PM, John Clements<br>
<<a href="mailto:clements@brinckerhoff.org">clements@brinckerhoff.org</a>> wrote:<br>
><br>
> On Apr 18, 2009, at 10:20 PM, gadva wrote:<br>
><br>
>> Thanks for the quick reply,<br>
>><br>
>> Sorry If I was unclear with the question, I just haven't had that much<br>
>> experience with setting up a web server before, and with networking in<br>
>> general so I'm not sure about the right terminology yet.<br>
>><br>
>> I guess my question was how to setup the application to serve requests<br>
>> to users connecting to my server by typing<br>
>> <a href="http://serverIP:8000/myapplication.ss" target="_blank">http://serverIP:8000/myapplication.ss</a>.<br>
>><br>
>> Because right now when I test it on a browser from within the server<br>
>> it runs ok, but when I attempt to connect from a different computer it<br>
>> does not work. So by using the code described above (and in the PLT<br>
>> Blog Application example from the website) (basically using web-sever/<br>
>> insta, serve/servlet) I am running the application on a selected port,<br>
>> so when a user connects to my IP adress with the correct port etc<br>
>> shouldn't the web server accept a request and respond with the HTML<br>
>> page that I define?<br>
><br>
> Speaking very generally, yes.<br>
><br>
> My guess is that the external requests are not reaching your web server,<br>
> either because of a software firewall or because of an external network<br>
> firewall.<br>
><br>
> One easy test is to try to contact the your PLT web server on the given port<br>
> using a simple telnet client from another machine, e.g.:<br>
><br>
> my-other-machine% telnet serverIP 8000<br>
><br>
> If it goes through... well, I'd be surprised. My guess is that it will<br>
> fail, but it can fail in two very different ways: most firewalls refuse to<br>
> answer entirely, in order to increase the cost of port scanning. So if you<br>
> get an immediate "server is not answering" message, then there's probably no<br>
> firewall in place. If you just get a stalled telnet, then there's probably<br>
> a firewall in place.<br>
><br>
> FWIW, there are about 150 things that could be going wrong here; my<br>
> confidence that I'm steering you in the right direction is only slightly<br>
> higher than 50%.<br>
><br>
> All the best,<br>
><br>
> John Clements<br>
><br>
><br>
><br>
</div></div><div><div></div><div class="h5">> _________________________________________________<br>
> For list-related administrative tasks:<br>
> <a href="http://list.cs.brown.edu/mailman/listinfo/plt-scheme" target="_blank">http://list.cs.brown.edu/mailman/listinfo/plt-scheme</a><br>
><br>
><br>
<br>
<br>
<br>
--<br>
Jay McCarthy <<a href="mailto:jay@cs.byu.edu">jay@cs.byu.edu</a>><br>
Assistant Professor / Brigham Young University<br>
<a href="http://teammccarthy.org/jay" target="_blank">http://teammccarthy.org/jay</a><br>
<br>
"The glory of God is Intelligence" - D&C 93<br>
</div></div></blockquote></div><br>