How to check HttpListener () using localhost?

I am working on an application that uses widely HttpListener(). Until now, I have done all my tests on a real network, but now I’m very tired of it.

I tried the usual suspects (localhost, 127.0.0.1) with the correct port, but nothing happens.

Is there any option in Windows? (Is it obvious that I'm generally a boy?)

+3
source share
2 answers

Both localhostand 127.0.0.1should work fine.

I suspect you have a firewall (such as Windows Firewall) that prevents connections in your local field. Disable it while you are testing.

+5
source

Http.sys( HttpListener) , , . httpcfg (xp) netsh (vista, win7 ..).

.

; .

0

Source: https://habr.com/ru/post/1789823/


All Articles