NancyFx / Nancy

Lightweight, low-ceremony, framework for building HTTP based services on .Net and Mono
http://nancyfx.org
MIT License
7.15k stars 1.47k forks source link

HttpListenerException when starting server #2912

Closed lentrodev closed 6 years ago

lentrodev commented 6 years ago

Description

Hello. I use Amazon EC2 service and I would like to start a nancy server but I can't start it because I always get exception: System.Net.HttpListenerException: The network location cannot be reached. For information about network troubleshooting, see Windows Help. As BaseUri for instance of NancyHost I use my IPv4 Public IP which is an Elastic IP which I associated with my instance. My code seems like this: var server = new NancyHost("http://{IPv4Address}:1234/base/"); What I do wrong and what I should use to get the needed result?

System Configuration