python - How to make Django's devserver public ? Is it generaly possible? -
i'm trying out django framework , share/present/show stuff i've made workmate/friends. work in ubuntu under win7 via vmware. wish/desire send current pub-ip port (e.g http://123.123.123.123:8181/django-app/) friends test it.
the problem - use django's dev server (python /path-to-django-app/manage.py runserver $ip:$port).
how make devserver public?
edit:
oh, there's forgot mention. sad use vmware ubuntu. have shellscript returns me current int-ip 192.168.xx.xx saves in environment-variable ($cur_ip) so, each time want run django's devserver execute
python /path-to-django-site/manage.py runserver $cur_ip:8080
at way become http-adress (e.g.http://192.168.40.145:8080/app-name/) can use outside virtual machine. test on host (win7) machine. that's reason why asked question. thought there's way use ext-ip , make runserver usabable outise too
192.168.*.*
lan-private address -- once you've done proper vmware (or other vm manager) , firewall incantations make accessible lan, still won't accessible outside lan, i.e., internet @ large (a thing too, because such development servers not designed security , scalability).
to make port of machine lan-private ip visible internet @ large, need router "virtual servers" ability (many routers, cheap ones, offer it, it's impossible specific enabling since each brand has own idiosyncratic way). recommend dyndns or other similar service associate stable dns name always-varying public ip (unless you're splurging static ip connectivity provider, of course, latter option becoming costlier time).
superuser.com or serverfault.com may provide better answers , details (once give every single little detail of configuration in question) since question has nothing software development , server administration , configuration.
Comments
Post a Comment