I wrote a simple http server in Go language as below:
http.ListenAndServe(":8888", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
w.Write([]byte("hello"))
}))
When I test it on certain machine runs Windows 7, I found client can't connect to the server.
telnet 127.0.0.1 8888
connecting 127.0.0.1… can't open connection to the host. on port 8888: connect failed. (I translate it from Chinese.)
Then I got the results of other test case:
- ping localhost and 127.0.0.1, successful.
- telnet localhost 8888, successful.
- telnet ::1 8888, successful.
- netstat -ano | find "8888", the server has listened 0.0.0.0:8888 and :::8888.
- Check the hosts file of OS, it's default configuration (nothing else).
- Check the Network Adapter, it doesn't open IPV6 adapter.
- The machine is in domain network.
- The IP Security Policy is an empty list.
- When I opened the MMC(Microsoft Management Console), I got a warning like this:
message box
It mean's:
Can't find resource "$(string.SiteDiscoveryEnableWMI)" (references in property displayName) . File C:\windows\PolicyDefinitions\inetres.admx, line 64620, row 235
Anyone can tell me what's going on?