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?
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 ofNancyHost
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