Sockets Tutorial with Python 3 part 1 – sending and receiving data

Python

Video is ready, Click Here to View ×


Welcome to a tutorial on sockets with Python 3. We have a lot to cover, so let’s just jump right in. The socket library is a part of the standard library, so you already have it.

Source code and text-based tutorial: https://pythonprogramming.net/sockets-tutorial-python-3/

Channel membership: https://www.youtube.com/channel/UCfzlCWGWYyIQ0aLC5w48gBQ/join
Discord: https://discord.gg/sentdex
Support the content: https://pythonprogramming.net/support-donate/
Twitter:…

21 thoughts on “Sockets Tutorial with Python 3 part 1 – sending and receiving data

  1. Thanks for this! Are you planning on making a full "network programming with python" series? I've been interested in learning more about this but never really found a good jumping off point, and as a back-end web developer, I want to learn more about the hardware/software interfaces I'm working with. Your videos are really good and I love the work you're doing!

  2. Ports 0-1023 are the Well Known Ports and are assigned by IANA. These should only be used for the assigned protocols on public networks.

    Ports 1024-65535 used to be called Registered Port Numbers (see rfc1700) but are now split into two areas (see rfc6335).

    Ports 1024-49151 are the User Ports and are the ones to use for your own protocols.

    Ports 49152-65535 are the Dynamic ports and should not be prescribed to a protocol.

    https://stackoverflow.com/a/38141340

  3. Thank you so much, you just helped with my project to do with an encrypted messaging app – seriously needed to learn this and there's no man I'd rather learn it from.

  4. When connecting remotely how do I make the ip (a local one) of the machine visible for the remote (client's) machine. I tried port forwarding the port im using but still nothing. Help!

Leave a Reply

Your email address will not be published. Required fields are marked *