Test DNS NB-IoT FiPy (v. 41019)
-
Hello,
I'm looking for help for this mistake:

Do you have any ideas please?
Thank you in advance! -
No one ?
I have another mistake when I try this way:

But I can't find any information to unlock the problem either.
-
@Tgasser This sequence works for me:
s = socket.socket() ss = ssl.wrap_socket(s) socket.dnsserver(0, "8.8.8.8") i = socket.getaddrinfo('www.google.com', 443)[0][-1] # i = ('172.217.22.110', 443) print('Connecting to socket...') ss.connect(i) print('Send...') ss.send(b"GET / HTTP/1.0\r\n\r\n") print(ss.recv(4096)) print('Close...') ss.close() -
@Tgasser Please can you use secure sockets ? Most servers no long accept connections on port 80.
s = socket.socket() s = ssl.wrap_socket(s) s.connect(socket.getaddrinfo('www.google.com', 443)[0][-1]) s.send(b"GET / HTTP/1.0\r\n\r\n") print(s.recv(4096)) s.close() -
@oligauc @robert-hh I tried with your code I get the same errors as before. If I use getaddrinfo then it returns EAI_FAIL and if I put the IP address directly with the port then it returns ECONNABORTED :/
-
@robert-hh @oligauc I'm only starting on networks and IoT and I was wondering if you didn't know about tests maybe more basic to try to see where the problem might come from?
-
Even with the last update of the pycom firmware I couldn't find a solution...
-
Maybe some progress? I have no error this time when I do ss.connect() but nevertheless it remains blocked at this step for more than an hour... Any idea, please?
-
Hello !
I still have an error that is EHOSTUNREACH yet google servers should be available? I use the Windows console with tracert google.com to know the IP address then I enter it in the socket.connect to avoid the EAI_FAIL bug of the getaddrinfo()...
If you have any ideas I'm listening, thank you :) -
This post is deleted!
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login