Go Down

Topic: Question about Ethernet function (Read 60 times) previous topic - next topic

vonOri

I'd like to know why the Ethernet Client can't work. I use very simple code to test its Ethernet function and it should show "new client" in Serial Monitor.
By the way, my board is Keyestudio w5500 Ethernet evb.

vonOri

I also have a question: how to make sure my ip address is correct. I directly use the ip and mac shown on the internet setting.

Juraj

I also have a question: how to make sure my ip address is correct. I directly use the ip and mac shown on the internet setting.
what Internet settings? of your computer?

how is the Ethernet module connected to network? to router or to computer?

use DHCP. (Ethernet.begin(mac);)

You can't write an Arduino sketch if you didn't learn programming. Not the language, but the concepts of programming - algorithms and data types.

vonOri

what Internet settings? of your computer?

how is the Ethernet module connected to network? to router or to computer?

use DHCP. (Ethernet.begin(mac);)


Yes, the Internet setting is about my computer. After I check the mac and IP of my computer, I unplug the net cable and connect it to the Ethernet module. So I think all the thing would be same.

By the way, if I use Ethernet.begin(mac), Ethernet.localIP() will return the same IP as the IP I see in the Network Center of my computer.

Juraj

Yes, the Internet setting is about my computer. After I check the mac and IP of my computer, I unplug the net cable and connect it to the Ethernet module. So I think all the thing would be same.

By the way, if I use Ethernet.begin(mac), Ethernet.localIP() will return the same IP as the IP I see in the Network Center of my computer.

because the router has already that MAC address paired with that IP address
You can't write an Arduino sketch if you didn't learn programming. Not the language, but the concepts of programming - algorithms and data types.

Go Up