Hello all,
I have a local network (192.168.1.xxx) where I have a W5500 based STM32 board connected as sever having a static IP of 192.168.1.241. I am able to connect to the server and get a web page sometimes and other times the browser says cannot reach host. When I ping W5500 from the same computer, ping reply comes. What could be the problem? Can someone help me please? Thank you.
NPS
No free sockets to connect to? You must have some sort of diagnostic output at the W5500 side to know the reason. Start with displaying status of all the sockets.
Hello Eugeny,
Thank you for your reply/suggestions. I have set aside 6 sockets to connect and all are free. Yes I have a diagnostic routine through which I can see the status of the socket on my serial terminal. All show 0x14 (listen mode) status. Any more suggestions please?
NPS
Hi Eugeny,
I am getting 0x1E as status. This is not documented. Can you through come light on this please? Thank you.
NPS
Next step is put listener PC just next to W5500 with Wireshark (in bridge mode to listen to all the packets) and check all the traffic to see what the cause of the issues could be. Do the W5500 sockets perform DISCON before closing the sockets and getting to LISTEN state?
Hello Eugeny,
“Bridge mode”?? I do not know what this mode is. Can you elaborate please? Yes I disconnect and then close the connection. Thank you.
NPS
Bridge mode. You should be able to find lots of articles on this for various operating systems. You must put W5500 in series with this PC to see all the traffic.
Hello Eugeny,
If you are referring to connecting the W5500 through LAN cable to my PC/Laptop and PC/laptop being connected to Wi-Fi on the other side and then sniff the traffic on the wired side, on Windows this does not happen. I tried to bridge the two but never worked. The procedure seems very simple but at least for me it never worked on Windows 11. I am connecting my W5500 to the router port and my laptop is connected via Wi-Fi hence sniffing the traffic may not be a an issue. Thanks.
Then this is first problem to solve. It always worked for me in Win 10 and Win XP. You probably need to look into the Windows firewall.
I would not rely on this premise.
Hello Eugeny,
I tried to create a bridge between the ethernet port and wi-fi in my laptop but it never worked. If I have to solve this problem, I am sure it will take a lot of time. Anyway I will solve that first and then come back. I should be back by tomorrow!!! Thank you