Web server

All student sessions can launch their own web or web socket server and access their server from a browser. To enable this capability first turn the Web/WS server to ON in the Workspace tab for the part setting.

When the student start the assignment, he/she can get a port number using the script voc_get_proxied_server_port. A web server or a web socket server can now be started which listens to this port. For example, following bash shell script would start a python web server - 

port=`voc_get_proxied_server_port`
python3 server.py $port
To access the server get the URL from the Details tab in the IDE - 

Use the URL to access the web server - 

Still need help? Contact Us Contact Us