0

I have just started the pset6 web server assignment and I am having a couple of problems even before I have begun.

  1. When I read through the assignment instructions, for pset6, and I have executed ~cs50/pset6/server public I get a return message in my IDE window, which says 'stopping server'. How can I resolve this problem?

  2. Also when I have tried opening Google Chrome and typing in http://192.168.1.94:8080/cat.jpg (my IP address and the port number) I get a message back, which says 'This site can't be reached' '194.168.1.94 refused to connect'

How can I solve this problem as well, so that I can get on with tacking the assignment? Any help would be most appreciated.

1

server gives the "Stopping server" message when it cannot find the "/path/to/root". So, there is no "public" folder in your current working directory when you execute ~cs50/pset6/server public. Either cd to the parent of your public folder or use full path.

192.168.1.94 looks like your local IP address. You need to contact the server at the IDE address.

From the instructions:

Toward the top-right corner of CS50 IDE, meanwhile, you should see your workspace’s "fully qualified domain name," an address of the form ide50-username.cs50.io, where username is your own username. Visit https://ide50-username.cs50.io/ (where username is your own username) in another tab.

If you do not see the FQDN (which seems to be missing in some versions of the IDE), hostname50 command will give you the information. And https is important.

5
  • Thanks very much for the advice. I've managed to get the IDE appliance listening on port 8080 now but I cannot locate the IDE appliance IP address. The instructions for the pset tell you that you can find it in the bottom right hand window of the appliance but in my IDE window the appliance IP address is not displayed. Any suggestions as to how I can get around this? – Mark Edwards Jul 29 '16 at 20:01
  • 1
    "appliance" and "IDE" are mutually exclusive in the context of CS50x. The 2015 version of the course used a VMWare appliance. From the IDE you need to contact your server by hostname. The 2016 version of the instructions does not mention "appliance", so maybe you are using last year's instructions. pset6 is substantially different between those two versions. Current version can be found here. [I know it says 2015 in the URL, that's the Harvard 2015 version, which is CS50x 2016 version.] – DinoCoderSaurus Jul 29 '16 at 20:51
  • I am using a version of CS50 IDE that I have accessed through Cloud 9 on my laptop and I am assuming that I am following the 2016 version of the instructions. I seem unable to move on with the pset unless I can access the IDE IP address. Is there any way that I can contact cloud9 to resolve this problem or obtain the IDE IP address another way? – Mark Edwards Jul 29 '16 at 21:21
  • 1
    Two things I know. The word "appliance" does not appear in the current instructions for pset6. I got through pste6 (and 7 and 8) and never had to know the "IDE IP" address. – DinoCoderSaurus Jul 29 '16 at 21:26
  • 1
    I've finally got the message. You were right. The 2015 and the 2016 versions of the instructions are different. I thought I was reading the 2016 version which in fact was the 2015 version. In the 2016 version it asks you to access your fully qualified domain name (FDQN) and from there you can access the files under the public folder in the browser. It took a bit of time getting there but thanks for your help. – Mark Edwards Jul 29 '16 at 22:27
1

I've finally got the message. You were right. The 2015 and the 2016 versions of the instructions are different. I thought I was reading the 2016 version which in fact was the 2015 version. In the 2016 version it asks you to access your fully qualified domain name (FDQN) and from there you can access the files under the public folder in the browser. It took a bit of time getting there but thanks for your help.

0

Thanks very much for the advice. I've now got the appliance listening on port 8080 by doing what you suggested. Yes IP address 192.168.1.94 is my local IP address and I've now realised that I need to use the IDE IP address to connect to the internet via the google browser and not my local IP address, as the instructions say. However, the instructions state that the IDE IP address can be found in the bottom right hand corner of the IDE window but my IDE window does not display its IP address. Any suggestions as to how I can get around this?

1
  • This is not an answer, it's really another question. I will delete my answer, then you can edit your original question. – DinoCoderSaurus Jul 29 '16 at 21:29

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .