Why does my boost.asio server accept data from host but not from vm?
I am new to Boost.asio and C++. I am trying to create a simple program which listens on a certain port for data and displays that data on the terminal. When the simple server (my C++, boost.asio code) is running and I go to the terminal on my computer (Mac) and use the nc command it connects without a problem. The problem is when I try to connect to the program using nc from an Ubuntu VM on VirtualBox, the program does not receive any data. Since the TCP acceptor is 0.0.0.0 I don’t understand why my terminal on host will connect to the program’s listening port but the VM won’t connect to program’s listening port. Any help would be greatly appreciated.