I'm trying to send email by arduino uno r3 as a client.
First I created a SMTP local server in my laptop with hMailserver,
then I connected my laptop to a router with Ethernet cable,
finally I connected my arduino uno r3 to the same router with ethernet cable.
The question is, when I choose the Ethernet IPV4 of my laptop as the local server, then the email can be sent successfully,
But when I unplug the ethernet cable of my laptop and using the WLAN IPV4 address of my laptop as the server, then the arduino can't connect to my local server,
I don't know why.
could you please tell me the principle?
below is my code, the code is working well when I choose the server as the Ethernet IPV4 of my laptop,
But when I unplug the ethernet cable of my laptop and using the WLAN IPV4 address of my laptop as the server, then the arduino can't connect to my local server,
email.ino (4.44 KB)