Borrar filtros
Borrar filtros

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

48 visualizaciones (últimos 30 días)
Qingying Tu
Qingying Tu el 11 de Jun. de 2018
Respondida: Pulkit Goel el 3 de Jul. de 2020
x=udp('192.168.2.20',166, 'LocalPort', 5030);
x.inputbuffersize=414720;
fopen(x);
fwrite(x,'get');
data=fread(x);
fclose(x);
  1 comentario
Walter Roberson
Walter Roberson el 11 de Jun. de 2018
Try quitting MATLAB and trying again: you might have an old connection sitting around from a previous attempt.

Iniciar sesión para comentar.

Respuestas (1)

Pulkit Goel
Pulkit Goel el 3 de Jul. de 2020
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';

Categorías

Más información sobre Logical en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by