What's the equivalent of get_extra_info("peername"), but for the server side? Tried get_extra_info("sockname"), but no luck. #13010
-
I've got some code using The CPython way seems to be by using What I'm trying to do is figure out what TCP port the client connected to on the server side from within my Any suggestions on how I can get the server side TCP port number? Thanks much!
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
It would seem that micropython does not support the |
Beta Was this translation helpful? Give feedback.
-
Are there plans to add |
Beta Was this translation helpful? Give feedback.
It would seem that micropython does not support the
socket.getsockname()
function (though lwip supports it) and so theStream
class can't populate the `"sockname" property of the streamreader.