Closed JumpMan35 closed 3 years ago
First make sure that you are able to create server with Ethernet library (WebServer example)
Thank for your reply. Previously, I have done a simple web server with Ethernet library. I have do again today, It' s working well with Ethernet library
Update this line Ethernet.init(53);
to proper pin value.
You 're right, I've refreshed with Ethernet.init(10);
in my case Arduino Ethernet Shield
But it still the same issue with WebServerSocket code Server running at 0.0.0.0:3000
and the WebServer is working
Your issue is not related to mWebSockets library. Ip address is fetched from Ethernet.localIP()
, something is wrong with your setup (mac or ip maybe?) or wiring.
In the basic web server, I've taken the same MAC & IP adresses and using Ethernet.localIP
function as in the WebSocketServer example . No problem.
Concerning the wiring, I didn't change anything since I've got the Arduino Uno / Ethernet Shield W5100
Do you have an another idea to investigate with WebSocketServer library or debug mode ?
You could try Ethernet.begin(mac);
instead of Ethernet.begin(mac, ip);
Thank you for help Good news, it's progressing well
Server running at 192.168.1.101:3000
New client: 192.168.1.102
You know how to fix the IP adress ?
Don't know for sure but it may be related to ip address leasing in router.
Hello, I'am using Ethernet Shield (5100) + Arduino Uno I have followed the procedure, but the debug console is still raiming the same
Let me know how to debug this issue, I took to much time to figure out but I can't solve it. Thanks
Please find my attached code based on simple server