Test port from C++