Replies: 1 comment 1 reply
-
try replace this in the client code |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Library/API/IoT binding
System.Net
Visual Studio version
VS2022
.NET nanoFramework extension version
No response
Target name(s)
ESP32_REV0
Firmware version
1.12.1.102
Device capabilities
Target capabilities:
Has nanoBooter: NO
IFU capable: NO
Has proprietary bootloader: YES
Description
When You try to Make a Connection (Socket) To a Specific endpoint It Will Make an Exception!
How to reproduce
Note: The server works well. After the Server be Start You Can See the Server SSID in Your Laptop Wi-Fi Scan
For More Test I Replace the Client, I Used My Laptop as Client (instead esp32): I create a console Application in visual studio and I copy the Client Code to the Console Application then I Connect to the Server by Laptop Wi-fi (With Server SSID AND PASS) then I run Console Application and It Worked!
Summary: If we use esp32 as client we get exception. if we use console Application as client it worked. with same code.
Expected behaviour
Connecting to server 192.168.4.1:80...
++++ Exception System.Net.Sockets.SocketException - CLR_E_FAIL (1) ++++
++++ Message:
++++ System.Net.Sockets.NativeSocket::poll [IP: 0000] ++++
++++ System.Net.Sockets.Socket::Poll [IP: 0017] ++++
++++ System.Net.Sockets.Socket::Connect [IP: 0053] ++++
++++ APSecurityHome.Program::Main [IP: 0079] ++++
Exception thrown: 'System.Net.Sockets.SocketException' in System.Net.dll
Error: Exception was thrown: System.Net.Sockets.SocketException code:10035
Screenshots
No response
Sample project or code
Server Code:
Client Code:
Aditional information
No response
Beta Was this translation helpful? Give feedback.
All reactions