It is the same physical card in the same physical machine. C++ is quite powerful.
Even a dedicated machine uses the same physical network interface on the same router. If sharing network hardware were a problem, every system on the Internet would have it. And yes, C++ is very powerful. So what?