フィルターのクリア

why it always apears “Address already in use: Cannot bind”?

48 ビュー (過去 30 日間)
Qingying Tu
Qingying Tu 2018 年 6 月 11 日
回答済み: Pulkit Goel 2020 年 7 月 3 日
x=udp('192.168.2.20',166, 'LocalPort', 5030);
x.inputbuffersize=414720;
fopen(x);
fwrite(x,'get');
data=fread(x);
fclose(x);
  1 件のコメント
Walter Roberson
Walter Roberson 2018 年 6 月 11 日
Try quitting MATLAB and trying again: you might have an old connection sitting around from a previous attempt.

サインインしてコメントする。

回答 (1 件)

Pulkit Goel
Pulkit Goel 2020 年 7 月 3 日
You may have an older connection still alive. Try quitting MATLAB and try again.
You can also turn 'EnablePortSharing' on to make a connection even if the port is already in use.
x.EnablePortSharing = 'on';

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by