--
You received this message because you are subscribed to the Google Groups "Iron Foundry" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ironfoundry...@googlegroups.com.
To post to this group, send email to ironf...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ironfoundry/fa4e7645-097d-416a-944b-54ed9d33ff06%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
_listener = new HttpListener();
var port = Environment.GetEnvironmentVariable("VCAP_APP_PORT");
_listener.Prefixes.Add("http://*:" + port + "/");
Cloud Foundry assigns a random port to your application, and that's the only port you have access to. The router component on the front of CF intercepts requests for your app and redirects them to the appropriate DEA and your unique port. So your application has to look for that port in the VCAP_APP_PORT variable and listen on it.
The other problem is that we discovered that the URI prefix that you add has to exactly match the firewall rule as it was added through netsh. In our case, this is "http://*:port/".
Once these two changes were made, I was able to push the application with `cf push your_app -s windows2012`.
If this doesn't work for you, please let us know! You can look for a blog post on this shortly at http://www.ironfoundry.org/blog/
-- bab
--
You received this message because you are subscribed to the Google Groups "Iron Foundry" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ironfoundry...@googlegroups.com.
To post to this group, send email to ironf...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ironfoundry/8db898b2-a210-463f-820e-b978262dece0%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Iron Foundry" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ironfoundry...@googlegroups.com.
To post to this group, send email to ironf...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ironfoundry/7803e463-6e3c-429c-96d3-9c1abb2336a9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.