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