UDP bind: Address already in use
问题 I have no knowledge in node.js . I am sending UDP packets in C++ and I want to show them in node.js . The problem is that both try to occupy the IP/port. Depending on which one I run, the other one fails. How should I fix this problem? main.cpp // g++ main.cpp -o main -std=c++11 -lboost_system -pthread #include <iostream> #include <stdio.h> #include <string> #include <boost/asio.hpp> using boost::asio::ip::udp; int main(int argc, char* argv[]) { const int port=1414; const std::string ip="127