Hello,
Thank you so much for your help.
I installed a Windows VM via VirtualBox and used NAT as its network settings, then I used the default gateway IP address instead of its IP address and as you see it connected:
C:\> ncat 10.0.2.2 -v 9050
Ncat: Version 7.93 ( https://nmap.org/ncat )
libnsock ssl_init_helper(): OpenSSL legacy provider failed to load.
Ncat: Connected to 10.0.2.2:9050.
Can you tell me why I must use the default gateway instead of the IP address?
In the Windows VM, I used Firefox with SOCKS v5, and set SOCKS Host to “10.0.2.2” and Port to “9050”, but I couldn’t browse any website. When I selected “Proxy DNS when using SOCKS v5” option, then it’s working.
My question is that why I must use the default gateway instead of the IP address?
On a real client (not VM) in my local network, I tested port 9050 and I got the following result:
C:\> nc 172.21.50.61 -v 9050
172.21.50.61: inverse host lookup failed: h_errno 11004: NO_DATA
(UNKNOWN) [172.21.50.61] 9050 (?): TIMEDOUT
Why? Are my iptables rules wrong? If yes, then why Windows VM can connect?