we're doing this grading of the guessing game.
We're grading the guessing game.
We have to put some code here, and the problem here is that we have to have this
code running on out laptop, because this server is on the real Internet and
it can't talk to your laptop, and so what I've got is I've got some code
running here, and that's in my Application/MAMP/htdocs/assn,
sub guess, sub broken.php, and so, I'm running MAMP.
So, that code right there is the same as what I am seeing here,
and so if I type guess, you know I can say, guess =42.
Well or I get missing guess parameter, and our guess=42.
Yeah, I'm right.
Okay, so the problem is if I just take this URL and I put it in the guessing
game, I mean if I put it in the autograder, this autograder is running out
there in the Internet somewhere and it can't connect to local host,
because your local host is not also on the Internet, so we have to find a way.
So this is going to blow up really badly, and it shows you something about the test.
When things blow up, you start to look from the bottom up,
and look for toggle, and this, it looks icky.
You have to read it.
This looks like it might be like a bug, but it's not,
it is a, it can't connect to port 8888.
Connection refused, this URL.
But don't just assumed that the autograder's blown-up,
sometimes the autograder like gets an error, and it shows you what it is, and
it tried to retrieve your file and it couldn't.
So something went wrong, okay?
So that's the problem.
We've gotta get to the point where we can't use this local host URL.
But as I've said, there is this wonderful piece of software called Ngrok, and
what Ngrok does basically is it makes it so
that anyone on the real Internet can talk to you laptop.
So over here, is where the server is.
This is where your MAMP is.
This is you and your, right?
So you're running MAMP over here.