Hi,
I am learning the ‘Lwip_enet_iperf3’ example and need help with the following problem.
The IP set for the mainboard network port is 192.168.1.102. The IP set for the computer is 192.168.1.121.
PC ping mainboard is OK.
But,It will fail to connect to the computer server, so I open SOCKETS_DEBUG and the prompt is as follows
I find this err code is -13 -> err = netconn_connect(sock->conn, &remote_addr, remote_port);
debug info:
Enter IP addr of a server in format '192.168.1.2'
192.168.1.121
Using IP 192.168.1.121
Initializing PHY...
Menu:
Press 's' to start client Tx mode
Press 'r' to start client Rx mode
Press 'S' to start client Tx UDP mode
Press 'R' to start client Rx UDP mode
s
Tx mode!
lwip_socket(PF_INET, SOCK_STREAM, 0) =
0
Connecting to the server...
lwip_connect(0, addr=192.168.1.121port=5205)
lwip_connect(0) failed, err=-13
Failed!
lwip_close(0)
lwip_socket(PF_INET, SOCK_STREAM, 0) =0
Hello Eddy,
Hope you are doing well.
From your image it looks like you are working with SDK 2.7.0, could you please update the SDK to the latest version. Also were you able to follow the initial instructions in the readme file successfully?
Best Regards,
Sabina
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------