From e0984d3e7a8e117e786423d544e5dc8f6f700109 Mon Sep 17 00:00:00 2001 From: dkoes Date: Tue, 7 Jul 2020 21:18:35 -0400 Subject: [PATCH] le --- tutorials/learning_environment.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tutorials/learning_environment.md b/tutorials/learning_environment.md index c186ce90c..5e553a0a7 100644 --- a/tutorials/learning_environment.md +++ b/tutorials/learning_environment.md @@ -23,7 +23,11 @@ cd node_modules/3dmol/learning-environment python3 server.py ``` -By default, this will launch a server on port 5000, e.g. http://HOSTNAME:5000/. Do not run this command as superuser to run the server on the privileged default webserver port 80 without consulting with a network security specialist. +By default, this will launch a server on port 5000, e.g. `http://HOSTNAME:5000/`. The viewer is at `http://HOSTNAME:5000/static/viewer.html`. +Your network must allow external connections to the specified port. +Do not run this command as superuser to run the server on the privileged default webserver port 80 without consulting with a network security specialist. + +Note that files put in the `3dmol` directory can be referenced as relative paths within the `url=` component. For example: `http://localhost:5000/static/viewer.html?url=molecule.sdf&style=stick` If you already have a webserver running, you can redirect the websocket requests used by 3Dmol.js to the server running on port 5000. For example, for apache the following is added to the configuration (see [here](https://stackoverflow.com/questions/36472920/apache-proxy-configuration-for-socket-io-project-not-in-root)):