0

I have a laptop with Wifi. I directly connect a straight-through ethernet cable between my laptop and my custom STM32 board. Using IPV4.

STM32 board with LWIP, set as server, IP 192.168.3.1, Gateway 192.168.3.0, Subnet mask 255.255.255.0, port 39 Laptop is client, set to IP 192.168.3.2, Gateway 192.168.3.0, Subnet Mask 255.255.255.0 in Control Panel->Network and Internet ->Network Connections, Ethernet Icon, Properties, Internet Protocol Version 4 (TCP/IPv4) My STM32 board starts first, no issue with LWIP initialization. Then I start Hercules application (from HW-group.com), it shows on “your PC network settings” the wifi IP, gateway and netmask. This is the problem. When I ping from laptop on Hercules, it works fine. When I try to connect from my laptop to STM32, it fails. Ethernet icon in Network connections has a red cross.

I had all this working before: I took my laptop home, came back, it stopped working. When It was working, Hercules would show on “your PC network settings” IP 192.168.3.2, Gateway 192.168.3.0, Subnet Mask 255.255.255.0, and not the wifi IP/Gateway/Mask. Also when it was working, Ethernet icon in Network connections would not have any red cross.

What am I doing wrong here? Which settings I need to do so that Hercules app. Would show the static local IP 192.168.3.2 and not the wifi IP? Anything that would allow me to connect my laptop to my STM32 board. How to have/setup a wired LAN with static IP, that I can use to connect to my STM32 board

0

1 Answer 1

0

What is wrong with your configuration is gateway should not be 192.168.3.0. This is the address of network! set it to other free IP address (but do not use 192.168.0.255, this is broadcast address)

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .