I am using FPGA to control W5300, which works as a TCP server. When I create a TCP client using MATLAB on my PC and try connect to W5300, the state of W5300 TCP socket switches from SOCK_LISTEN to SOCK_SYNRECV, then it is stuck until timeout and finally closed. How can I solve this problem? Any information is appreciated.
W5300 (SERVER) IP: 10.249.178.28; PORT NUM: 30000
PC (client) IP: 10.249.178.71;
Subnet mask: 255.255.248.0
Client and server connect through an Ethernet switch.