HELP: Using pygame template behind school district firewall

Question:
Hey Folks,
Has anyone had any luck using the Pygame template behind a school district firewall? I am a high school teacher and I’m going to meet with my district tech folks. When I try to use the pygame template, I just get a generic error message in the console. The same is true for Python-CMUGraphics template.

Repl link/Link to where the bug appears:

Screenshots, links, or other helpful context:

code snippet
2 Likes

Do you mean the school district firewall as in the firewall that prevents users from accessing blocked and inappropriate sites, or do you mean the firewalled Replit version? I’m guessing it might be a bug with Replit. I believe something similar has happened before, but I’m not sure; it could be an issue with your district’s firewall that might be interfering with the pygame graphics on Replit.

1 Like

I think so.

Nope

Yes

2 Likes

The Webview and Output tabs use the repl.co domain, so if that domain is blocked, your Output will stop working

3 Likes

I cannot get either replit or firewalledreplit to work behind my school firewall. I would like for my computer programming students to be able to write code using Pygame and/or Python-CMUGraphics templates. I’ve had students try both domains mentioned above with no luck. They keep getting a message like, “Cannot connect to serve,” instead of graphics being displayed.

Well, I definitely want to use the Output tab, so I’ll ask the district tech folks to whitelist repl.co

Is it repl.co or replit.co ?

Depends, are you using normal Replit or Firewalled Replit? For normal Replit, repl.co. For Firewalled Replit, firewalledreplit.co

2 Likes

specifically, you want to whitelist *--<edu team username>.repl.co

1 Like

I’m not sure what means. I just want individual students to have access to Pygame. could we just whitelist *.repl.co ?

I’ve had a similar issue on firewalledreplit.com.
I noticed that id.firewalledreplit.co (which is used for the output) was not found, the name could not be resolved. Other devices worked fine for that domain, redirecting to www.id.firewalledreplit.co (which still always works).

I tried a few things and don’t know if it did anything, but I think I fixed the problem by running the program, then while the program was running, clicking the Try again button. It connected.

2 Likes

Thank you all for your input. You made me realize that I can get more info by clicking on Diagnose. When I did, replit told me to click on the following link to see if it works: 10622591-6a32-44be-aa89-1421705f33ea.id.repl.co

Clicking on that link came up with an error that looked like it might be because of the firewall. So, should I have the district folks whitelist *.10622591-6a32-44be-aa89-1421705f33ea.id.repl.co or *.id.repl.co or *.repl.co or do something else?

1 Like

The “Diagnose” link is for the replit.com output domain, not the firewalledreplit.com output domain. Most districts block the former, but the latter is supposed to work.
Try going to id.firewalledreplit.co and seeing the error, as this domain provides the output if I recall correctly. www.id.firewalledreplit.co should still work.

I tried my fix again and it does work, though the firewalledreplit domain still has an error.
(Run the program, wait a bit, then hit Try again button while it is running.)

2 Likes

My student was using firewalledreplit.com when this came up in the output window: 10622591-6a32-44be-aa89-1421705f33ea.id.repl.co

Thank you again for the advice. When I have my student try to go to id.firewalledreplit.co we are told that the site is categorized as a security proxy. When I have him go to repl.co, we are told that the site is categorized as a security proxy.

Then ask your IT department to unblock *.firewalledreplit.co

1 Like

So, I just got done speaking with my district IT folks. They say that they are concerned that students could use the Output window as a proxy server. They are going to work with me and replit, to try to figure out a way to get output to work without risking a security breach from students.

You can tell them that the whole point of firewalledreplit.com is to allow people to use replit without fear of using proxies, by blocking internet access.
Show them the article:
https://docs.replit.com/getting-started/firewalled-replit

3 Likes
  1. use firewalled replit (which i am assuming u are)
  2. click try again

I got the same thing as you and js clicking try again fixes it

  1. if none of those work ditch replit and use vscode or smth

nevermind i just now read everything lol