All Pro Web Designs > > Learning Tutorials > Programming Languages > Python > Python Socket Programming Tutorial
Video Title: Python Socket Programming Tutorial
-
Sale!
Wireless WIFI Repeater Extender Amplifier Booster 300Mbps
$29.99$14.99 Add to cartWireless WIFI Repeater Extender Amplifier Booster 300Mbps
Categories: Electronics, Wi-Fi Router, Wireless Wi-Fi Extender Tags: 300Mbps, 802.11N, Amplifier, Booster, Extender, mobile wi-fi booster, Remote, WIFI, Wireless, Wireless WIFI, Wireless WIFI Repeater, Wireless WIFI Repeater Extender, Wireless WIFI Repeater Extender Amplifier, Wireless WIFI Repeater Extender Amplifier Booster, Wireless WIFI Repeater Extender Amplifier Booster 300Mbps$29.99$14.99 -
Sale!
Full RGB Light Design Gaming Headset Headphones with Mic
$24.99$14.99 Add to cartFull RGB Light Design Gaming Headset Headphones with Mic
Categories: Electronics, Gaming, Gaming Headsets Tags: Design, Full, Full RGB Light Design Gaming Headset, Full RGB Light Design Gaming Headset Headphones, Full RGB Light Design Gaming Headset Headphones with Mic, Gamer, Gaming, Gaming Headset Headphones, gaming headset wireless, Headphone, Headphones, Headset, Light, Mic, Package, RGB$24.99$14.99 -
Sale!
Wireless BlueTooth Multi-Device Keyboard Mouse Combo
$39.99$19.99 Add to cartWireless BlueTooth Multi-Device Keyboard Mouse Combo
Categories: Electronics, Gaming, Gaming Keyboards, Keyboard Mouse Combos Tags: Combo, Keyboard, keyboard mouse combos, Mouse, MultiDevice, Set, WireKeyboard Mouse Combo, Wireless, Wireless BlueTooth Keyboard Mouse Combo, Wireless BlueTooth Keyboard Mouse Combos, Wireless BlueTooth Multi-Device Keyboard Mouse Combo, Wireless BlueTooth Multi-Device Keyboard Mouse Combos$39.99$19.99 -
Sale!
High Back Leather Executive Adjustable Swivel Gaming Chair with Headrest and Lumbar
$199.99$139.99 Add to cartHigh Back Leather Executive Adjustable Swivel Gaming Chair with Headrest and Lumbar
Categories: Gaming, Gaming Chairs Tags: Adjustable, Chair, computer chairs, Desk, Executive, Gaming, Girl, Headrest, High, High Back Leather Executive Adjustable Swivel Gaming Chair, High Back Leather Executive Adjustable Swivel Gaming Chair with Headrest, High Back Leather Executive Adjustable Swivel Gaming Chair with Headrest and Lumbar, High Back Leather Executive Adjustable Swivel Gaming Chairs, Leather, Lumbar, Office, Racing, Swivel$199.99$139.99 -
Sale!
Professional LED Light Wired Gaming Headphones with Noise Cancelling Microphone
$29.99$19.99 Select optionsProfessional LED Light Wired Gaming Headphones with Noise Cancelling Microphone
SKU: N/A Categories: Electronics, Gaming, Gaming Headsets Tags: Cancelling, Gaming, Gaming Headphones with Noise Cancelling Microphone, gaming headset, Headphones, Headset, LED, Light, Mic, Microphone, Noise, Professional, Professional LED Light Wired Gaming Headphones, Professional LED Light Wired Gaming Headphones with Noise Cancelling Microphone, Wired, Wired Gaming Headphones, Wired Gaming Headphones with Noise Cancelling Microphone$29.99$19.99 -
Sale!
Gaming Desk with LED Lights USB Power Outlets and Charging Ports
$349.99$249.99 Select optionsGaming Desk with LED Lights USB Power Outlets and Charging Ports
SKU: N/A Categories: Computer Desk, Gaming, Gaming Desk Tags: and Charging Ports, Charging, Desk, Desks, Gaming, gaming desk with led lights, Gaming Desks with LED Lights, Home, LED, Lights, Monitor, Office, Outlets, Port, Power, Room, Stand, USB, USB Power Outlets, White, Workstation$349.99$249.99 -
Sale!
Wired Mixed Backlit Anti-Ghosting Gaming Keyboard
$99.99$79.99 Add to cartWired Mixed Backlit Anti-Ghosting Gaming Keyboard
Categories: Electronics, Gaming, Gaming Keyboards Tags: Antighosting, Backlit, Blue, brown, Gaming, Gaming Keyboard, gaming keyboards, gaming keyboards and mouse, Keyboard, Laptop, Switch, Wired, Wired Mixed Backlit Anti-Ghosting Gaming Keyboard, Wired Mixed Backlit Anti-Ghosting Gaming Keyboards, Wired Mixed Backlit Gaming Keyboard$99.99$79.99 -
Sale!
Wireless Bluetooth 5.3 ANC Noise Cancellation Hi-Res Over the Ear Headphones Headset
$119.99$59.99 Add to cartWireless Bluetooth 5.3 ANC Noise Cancellation Hi-Res Over the Ear Headphones Headset
Categories: Electronics, Gaming, Gaming Headsets Tags: 5.3 ANC Noise Cancellation Hi-Res Over the Ear Headphones Headset, ANC, Audio, Bluetooth, Cancellation, Ear, Earphone, gaming headset, Headphones, Headset, Hi-Res Over the Ear Headphones Headset, HiRes, Noise, Wireless, Wireless Bluetooth 5.3 ANC Noise Cancellation Hi-Res Headphones, Wireless Bluetooth 5.3 ANC Noise Cancellation Hi-Res Over the Ear Headphones Headset, Wireless Bluetooth 5.3 ANC Noise Cancellation Hi-Res Over the Ear Headphones Headsets$119.99$59.99 -
Sale!
Wired Sports Gaming Headset Earbuds with Microphone
$19.99$9.99 Select optionsWired Sports Gaming Headset Earbuds with Microphone
SKU: N/A Categories: Gaming, Gaming Headsets Tags: Accessories, Earbud, Earphone, Earphones, Gaming, gaming headset with microphone, Headphones, Headset, IOS, Microphone, Sports, Wired, Wired Sports Gaming Headset Earbuds, Wired Sports Gaming Headset Earbuds with Microphone, Wired Sports Headset Earbuds$19.99$9.99 -
Sale!
150W Universal Multi USB Fast Charger 16 Port MAX Charging Station
$49.99$29.99 Add to cart150W Universal Multi USB Fast Charger 16 Port MAX Charging Station
Categories: Charging Stations, Electronics Tags: 150W, 150W Charging Station, 150W Universal Multi USB Charging Station, 150W Universal Multi USB Fast Charger 16 Port MAX Charging Station, 150W Universal Multi USB Fast Charger 16 Port MAX Charging Stations, 150W Universal Multi USB MAX Charging Station, 16 Port MAX Charging Station, 3.5A, Charger, Charging, Fast, laptop charging stations, Max, Multi, Port, Stand, Station, Universal, USB$49.99$29.99
Hi nice bit of coding but there is a number of errors in your networking description. Firstly the modem is not where your public address will sit it will be on the wan interface of the router and the router is in fact firewall as it will hide the private addresses behind the public address.
You are dealing with tcp ports the is 65535 ports full list https://en.m.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers
And the number you are seeing with the received message on the server is in fact the source port.
Also you would not run your server on the modem it would be run inside your net work and using Nat you would forward connections to the server via the router but this would be bad idea on a home internet connection as the router will not be secure enough as you normally what to this via a DMZ.
Thank you Tim for this video, you made it simple for me!
Hey what will happen if we don't add the padding in the message sent by client and let the message be smaller than the hardcoded byte
I knew this Video was going to be a bomb as soon as I head "Fortnite".
a better way to check the message received is ok thatn just sending a simple ACK or other message would be to send a CRC of the text sent. This way if the CRC matches the string for the CRC on the received side, than we know for sure the text made it ok and data is 100%.
it actually IS a port number, or more accurately, its the socket number of the connection. its important if you wan tto address indiciudal clients, etc/
4:29 This is like noclip glitch.
the code page is gone…..
This is so helpfull❤
You won me with Fortnite analogy thank you great video!
great lesson – my only issue is when starting the server, it shows 4 connections before touching the client script
Thank you.
Despite the errors, this video is incredibly useful for getting a head-start on getting a python server running. My degree courses never really taught me python let alone sockets, so this has been a MASSIVE help getting me going with a python server I need to have interacting with a MySQL database for my senior project.
thank youuu, you explained way more than my prof in 3h
Modems don't get assigned a public IP address or have nothing to do with IP addresses, routers do. Funny how you got that wrong, that's basics.
And wow, you don't know how many ports there are? Why are you trying to teach people things you don't actually know about, again?
Useful video – but code link is dead and cannot find code in your github repository, does it still exist ?
Thanks!
45:20
Hi !!! Wonderfulll tutorial… Could anyone please, provide a link to pgms code? Thanks in advance…
Amazing tutorial ❤
Okay I'm a CS major taking Net computing and you are a better teacher than my teacher. Thank you for saving my life!
Hey Tim. Very good and informative, but I don't understand the threading. How does it create a new thread when you only call thread.start()?
I’m trying to use this to create a personal web analytics plugin for my website
I get printed "7 connections" from "threading.active_count() – 1" without one single client being connected. Why?
SOCK_STREAM – basically the TCP connection(default), for UDP u can use socket.SOCK_DGRAM
Hey Tim, the first time I ran my code it worked fine but after that every time I run it, it shows me an error : client.connect(ADDR)
ConnectionRefusedError: [WinError 10061] No connection could be made because the target machine actively refused it
Could anyone in the comment section help me out
48:48 Doesn't work. What should I do? The target seems easy: to make it possible for people from different networks connect. Please someone explain a way to do that.
Amazing video! Does anyone have the link to the code? the old link is not working anymore
Very well and easyly explained bro.
why, Error Connection Refused?
Does this handle multiple clients too??
The white backdrop hurts my eyes. We both use a dark background for coding. Please do the same for these diagrams >_+
Hi Tim, Thank you for a nice video. What happens if you select a known port like 80? Can it disable port 80? Thank you in advance..!
Wasup Tim , is it possible you can make a video that goes through how python reads each line behind the scenes ? or will that take to long?
17:41 if anyone was wondering this just specifys that your using a tcp connection if you do something like socket.SOCK_DGRAM that will give you a udp connection instead
the ctrl+shift+' shortcut doesn't "pop up" the terminal, it opens a terminal, so use it multiple times to get multiple at the same time, no external terminal required
This is such an amazing tutorial. I will read up on the technical details myself, but the programming part was on point. Thanks a lot for the efforts put into making this video, Tim!
youre the IT goat tim thank you for your module showcases
socket.gethostbyname(socket.gethostbyname()) is throwing an ERROR
SERVER = socket.gethostbyname(socket.gethostbyname())
TypeError: gethostbyname() takes exactly 1 argument (0 given)
can anyone provide me solution ,or a link to solution please
Great video, very informative and clearly explained. 👍
Thank you so much for this tutorial it helped me a lot for my project for university 🙂