There are many ways to run a flash web application on a virtual machine (tramp driven). I think the following approach is quite flexible, because you do not need to deal with a different IP address. It also looks like you are running on a host machine.
There are two things you need to configure. In VagranFile, you need to configure port forwarding.
Vagrant.configure(2) do |config| # use default box config.vm.box = "ubuntu/trusty64" # forward port guest machine:5000 -> host machine:5000 # port 5000 is default for flask web app config.vm.network "forwarded_port", guest: 5000, host: 5000 end
Then, in the virtual machine, you must run the flash application on ip 0.0.0.0 , which means that the web application will serve any IP address. Read more about this topic → flash drive doc section External visible server
if __name__ == "__main__": app.run("0.0.0.0", debug=True)
What is it. You should be able to connect to http://localhost:5000
source share