how can i free the port to be used when fopen a udp by function fopen

조회 수: 2 (최근 30일)
CoderMinga
CoderMinga 2023년 9월 12일
답변: R 2024년 5월 16일
when i run the ocde :
obj.m_udp = udp(192.168.1.1,'RemotePort',50001,'LocalPort',50002);
fopen(obj.m_udp);
then a error in command view:
error: icinterface/fopen
Unsuccessful open: Address already in use: Cannot bind

답변 (1개)

R
R 2024년 5월 16일
You can refer to the following troubleshooting steps to make sure that there are no other applications or MATLAB instances running that might be using the same IP address and port.

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by