Not able to connect to TCP Server running on same PC using Matlab tcp client
조회 수: 5 (최근 30일)
이전 댓글 표시
Hi,
I have created a tcp server using C and running on my local PC (localhost) , listening to clients at port 5566. I could connect if i create a c program for tcp client to connect to the tcpserver on localhost.
When I'm trying to connect to this server from Matlab, running on the same PC I get the below errors.
Below are the comments given,
>> t = tcpip('localhost', 5566, 'NetworkRole','client');
>> fopen(t);
Error using icinterface/fopen (line 83)
Unsuccessful open: Connection refused: connect
댓글 수: 1
Walter Roberson
2022년 2월 27일
Note that these days you should be using tcpclient() instead of tcpip()
답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!