mikeizbicki / cmc-csci040

Computing for the Web
37 stars 58 forks source link

WarDialing Troubleshooting #277

Closed henrylong612 closed 1 year ago

henrylong612 commented 1 year ago

Hi Mike,

I just ran my WarDialing program and only got 3 servers (instead of the expected 16). To rectify this, should I increase the number of seconds for the timeout, or would this be a symptom of a larger problem?

Best, Henry

henrylong612 commented 1 year ago

Update: I reran my WarDialing program with a 10-second timeout instead of a 5-second one, and still only got 9 servers (instead of the expected 16). How should I proceed?

mikeizbicki commented 1 year ago

You can submit it as-is for full credit. Grading-wise, the most important thing is that you pass the test cases.

Likely the reason you're not getting the full 16 servers is because you're using the campus wifi, and several other students are also connecting to the DPRK webpages at the same time, and that's overloading the campus wifi's connections. Everyone using the campus wifi is assigned the same IP address, and this can confuse the webservers when there's multiple people from the same IP address connecting. For whatever reason, the campus assigns unique IP addresses to the dorm ethernet wall connections, and so doing the scan from there wouldn't run into this problem.

henrylong612 commented 1 year ago

Wonderful. Thank you!