while checking the ufw status for using nginx server in ubuntu app in windows, getting error. Can't get solved this issue? [duplicate]

Solution 1:

Because you don't have a Linux kernel.

ufw is a frontend for netfilter. Netfilter is the Linux Kernels support for filtering IP packets. Windows has a different mechanism, commonly named Windows Firewall.

ufw only supports netfilter, not Windows Firewall or other IP filtering technologies. It thus only works on systems with a Linux kernel.

The man page mentions this:

This  program  is for managing a Linux firewall and aims to provide an
easy to use interface for the user.

Some tools are really not portable to different platforms. This includes tools that, like ufw, attempts to interface the operating system kernel.