teddy
teddy

Reputation: 423

netcat not able to run in windows 10

When I type nc -l -p 9999 under the nc.exe bash, I got an error saying:

nc:forward host lookup failed: h_errno 11001: HOST_NOT_FOUND

The operating system of mine is Windows 10. This command works perfect in my friend's windows 7 computer which makes me think maybe there should have some more actions on windows 10?

I saw someone says to turn off the firewall, I did but it is still not working.

Hope somebody can help me out!

Upvotes: 1

Views: 13950

Answers (2)

Zee Arvee
Zee Arvee

Reputation: 1

What worked for me was doing this (c:\users...\netcat is the folder i've uncompressed nc.exe into):

c:\users\...\netcat> .\nc.exe
Cmd line: -l -p 10514

screenshot

Upvotes: 0

teddy
teddy

Reputation: 423

I've figured it out. The thing is, you should just go to the netcat folder and type the command above. What I did before is to first execute the nc64.exe and then type the command inside the nc64.exe which causes the problem.

However, what I wrote above is only for windows. Mac, Linux does not apply.

Upvotes: 4

Related Questions