Python Sockets Simply Explained

  Рет қаралды 148,605

NeuralNine

NeuralNine

Күн бұрын

In this video we learn the fundamentals of socket programming in theory and in Python.
◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾
📚 Programming Books & Merch 📚
🐍 The Python Bible Book: www.neuralnine.com/books/
💻 The Algorithm Bible Book: www.neuralnine.com/books/
👕 Programming Merch: www.neuralnine.com/shop
🌐 Social Media & Contact 🌐
📱 Website: www.neuralnine.com/
📷 Instagram: / neuralnine
🐦 Twitter: / neuralnine
🤵 LinkedIn: / neuralnine
📁 GitHub: github.com/NeuralNine
🎙 Discord: / discord
🎵 Outro Music From: www.bensound.com/
Timestamps:
(0:00) Intro
(0:52) Client-Server Architecture
(10:58) Sockets Theory (TCP/UDP)
(20:40) Skype Example
(22:30) Coding The Server
(33:30) Coding The Client
(39:00) Outro

Пікірлер: 173
@robinranabhat3125
@robinranabhat3125 Жыл бұрын
ohh my god . the clarity. the depth you go through. this guy knows what he is talking about. unlike 100 other socket programming videos.
@AnthonyClot
@AnthonyClot Жыл бұрын
Man that's a seriously good video. It should have much more views. I struggled so much to get a grasp on how sockets are actually working while building my VM with a web server. Your explanations are clear, audio is clean, rhythm is good; your content is really good. Thanks
@yehonatanyosef83
@yehonatanyosef83 2 жыл бұрын
Its actually the best simple and wide covered video of socket that i saw so far. Thank you very much!
@dakshitha1
@dakshitha1 2 жыл бұрын
Dude, cannot thank you enough for this. I read up on sockets but the language confused me. You explained the fundamentals in a way that is very newbie friendly. Defa subbing.
@kavyabhatnagar716
@kavyabhatnagar716 2 жыл бұрын
You have made sockets so much easier to understand ❤
@Jonathan-ru9zl
@Jonathan-ru9zl Жыл бұрын
I love that it is one long Continuous video instead of edited segments
@dhanukaperera594
@dhanukaperera594 Жыл бұрын
This was very well explained. Rather than just copying code, I actually understood what was going on.
@michaelswahla4927
@michaelswahla4927 Жыл бұрын
finally someone who doesnt talk bullshit and explains what sockets really are and how we can use them. i dont give a like on most vids but urs defo deserves one! great job mate
@kaiohenrique8503
@kaiohenrique8503 2 жыл бұрын
It helped with my university semester project. Thanks!
@ch0wderz912
@ch0wderz912 2 жыл бұрын
I had to subbed because this was painted clarity, it's like i'm a kid holding my mum's hand to walk across the street. You helped a lot thanks good sire!!
@ethanpaus4148
@ethanpaus4148 Жыл бұрын
I like your explanation and quite easy to understand. I tried to learn socket on other websites but don't understand what they mean so I find it on KZbin and I found this amazing video. I found it, I watched it, I liked it and I subscribed it. Thank you!
@Glanmire3
@Glanmire3 Жыл бұрын
I suppose important to mention: both WAN and LAN addresses are usually dynamic assigned (the WAN address by the internet provider). So if you consider to assign a static LAN address on your own network the best practice at first to modify the LAN router's settings and reserve a range for fix IP addresses, otherwise there is a chance for an address duplication and in that case can happen intermittent connection failure/disconnection with the devices that has same address.
@user-zg2kr6ph9z
@user-zg2kr6ph9z 11 ай бұрын
no single gap was left uncovered, great work ♥
@rishabhyadav9986
@rishabhyadav9986 2 жыл бұрын
You make it so simple thanks buddy!!
@CheezePie
@CheezePie Жыл бұрын
Thank you so much! Because of you, I am able to understand how socket connections work
@AbubakarMulla23
@AbubakarMulla23 2 жыл бұрын
Good explaination bro, Keep going like this... We are with you😇
@thelover2392
@thelover2392 2 жыл бұрын
thank I was working on a project to connect my phone and my laptop, & ur video help me : ). thanks
@rp9406
@rp9406 Жыл бұрын
Thanks for that wonderfull introduction to Client, Server, IP, etc.
@yungmaz13
@yungmaz13 8 ай бұрын
This video is underrated, definitely deserves more likes
@user-jg7nj7nz5z
@user-jg7nj7nz5z 4 ай бұрын
You the man. From Nigeria, learning a lot from you.
@harshagnihotri9318
@harshagnihotri9318 Жыл бұрын
u made it sound SOOOOO EASYYY. Thankyou
@thepaulcraft957
@thepaulcraft957 2 жыл бұрын
Vielen dank für das Video, sehr hilfreich!
@centralcoding
@centralcoding 9 ай бұрын
my first video to socket, very great and clear Thanks bro
@michelleqmli3702
@michelleqmli3702 2 жыл бұрын
Good tutorial, becoming my favorite 30min past time. Really appreciate your sharing 👏
@bassemgouty9840
@bassemgouty9840 2 жыл бұрын
always blessing us with quality tutorials keep it buddy !
@NeuralNine
@NeuralNine 2 жыл бұрын
thanks!
@changningli4107
@changningli4107 2 жыл бұрын
Keep up the good work man!
@o1techacademy
@o1techacademy 11 ай бұрын
Excellent video on socket. Thank you very much.
@cwansu
@cwansu 2 жыл бұрын
Thank you 💘 very much for this details videos.🙏🙏 Keep smiling 😀
@ikki411
@ikki411 2 жыл бұрын
This video is great, thank you!
@jamescagney5314
@jamescagney5314 Жыл бұрын
So well done! Thanks
@val8801
@val8801 2 жыл бұрын
It helps me a lot thk bro and continue !! :)
@MostafaKhaled-uv7gq
@MostafaKhaled-uv7gq 5 ай бұрын
Thank you man your explaining is fantastic and precise
@issaclifts
@issaclifts Жыл бұрын
Really good tutorial thanks!
@GuillermoGarcia75
@GuillermoGarcia75 7 ай бұрын
Great video! Right to de essentials!! Thx!
@guydror7297
@guydror7297 Жыл бұрын
Amazing tutorial!
@awuyadaniel8982
@awuyadaniel8982 13 күн бұрын
No wayyyyy Thanks Man The clarity was wonderful Thank you
@gbagba81
@gbagba81 2 жыл бұрын
dude I love so much when you speak this naturally. It'd crack me up laughting if you spoke when coding the same way when you're explaining theory. I mean it's great but I thought you were an AI until now XD. greetings thank you so much
@MrFaustotromba
@MrFaustotromba 2 ай бұрын
thanks a lot!! You have helped me so much
@user-jg7nj7nz5z
@user-jg7nj7nz5z 4 ай бұрын
You the man. Learning a lot from you
@santanupathak3917
@santanupathak3917 8 ай бұрын
Thanks a lot....Such a good video!
@christianetis
@christianetis 2 жыл бұрын
great video, very well explained
@MohamedAshraf-zs6nv
@MohamedAshraf-zs6nv 2 жыл бұрын
thanks, really helpful. you got new subscriber
@kellybmackenzie
@kellybmackenzie 8 ай бұрын
Thank you so much, you helped me so much!!
@deeparose2926
@deeparose2926 2 жыл бұрын
That's was very well explained...
@MajedSalmaoun
@MajedSalmaoun Жыл бұрын
the easier explain of sockets that i have ever seen ^^
@Jonathan-ru9zl
@Jonathan-ru9zl Жыл бұрын
Continue with your professional channel 👋👍
@user-yy6gf8ou7m
@user-yy6gf8ou7m 6 ай бұрын
class video, really helped me understand whats going on
@amazing-graceolutomilayo5041
@amazing-graceolutomilayo5041 2 жыл бұрын
Literally 1:23 into the video, I hit the sub button. To more videos🥂
@bangvu2127
@bangvu2127 23 күн бұрын
Thanks for your great explanation
@user-hf6sz3bx8h
@user-hf6sz3bx8h 8 ай бұрын
Wow You are the best! Thank you!🙏🏻
@aliyanpops6424
@aliyanpops6424 2 жыл бұрын
38:25 that confusion "Why is that?" got me : )
@YouMustKnow987
@YouMustKnow987 2 жыл бұрын
I Like it!!! Congratulations Bro
@revanthsompalli3713
@revanthsompalli3713 2 жыл бұрын
Awesome tutorial sir
@antonywmiller
@antonywmiller Жыл бұрын
Thanks for this!
@mohithadiyal6083
@mohithadiyal6083 Жыл бұрын
You got the best explanation 👍
@legendarykiller7633
@legendarykiller7633 2 жыл бұрын
hi neuralnine love ur vids keep up the good work
@NeuralNine
@NeuralNine 2 жыл бұрын
thank you!
@laventesanderson3691
@laventesanderson3691 Жыл бұрын
nice video thanks for the knowledge...
@midhunksadasivannair6011
@midhunksadasivannair6011 7 ай бұрын
Saved my week
@andrewens3337
@andrewens3337 6 күн бұрын
thanks for the great video
@canadianbeast8671
@canadianbeast8671 2 жыл бұрын
Thank you so much!
@rafaykhanzada5606
@rafaykhanzada5606 2 жыл бұрын
Amazing channel I learn alot this guy is super love u bro n last but not least can u please make video on deep speech recognition and Text to speech for AI assistant sounds like human.
@AfonsoP2001
@AfonsoP2001 Жыл бұрын
thank you for the explanation
@mike-nn1mq
@mike-nn1mq Жыл бұрын
bro you explain very good!
@EntrepreneurChips
@EntrepreneurChips 10 ай бұрын
Thanks NeuralNine🥰
@rafy-ivanmorales3077
@rafy-ivanmorales3077 2 жыл бұрын
I'm a new student trying to learn, so I can become a programmer with python and I have a project on how to make a port scan. So far I already make a port scan with Python3, and it scans fine, give a date and everything working good so far. I see on your video tutorial, it is very good. I would like to ask for your advice if you can and guide me on how I will add this 3 in a Python script, I have: 2. System should look for all the ports between the range of 1 to 1025 3. If the Ports is open, it should create a file and add an entry for port number 4. In case of any exception for instance “host is not available”, “host name could not be resolved” or due to any other error, you need to write that exception into the same file. Thank you and Merry Christmas.
@ojaspatil2094
@ojaspatil2094 9 ай бұрын
thank you!!!
@barracudabarracuda7921
@barracudabarracuda7921 2 жыл бұрын
Hi.I've a simple challeng for u!Code a simple peer to peer file shareing program using socket.Great job
@RitikRaj-we2sc
@RitikRaj-we2sc 2 жыл бұрын
hey , i know how to send files to a client one at a time , but can we send multiple files parallely ??
@SHA-tw6dl
@SHA-tw6dl 2 жыл бұрын
@@RitikRaj-we2sc yes we can but there is no use for it
@RitikRaj-we2sc
@RitikRaj-we2sc 2 жыл бұрын
@@SHA-tw6dl it can be used to create file transfer application. It would be really good if you explain how to implement this, as i didn't find a single help on internet.
@bshsb3038
@bshsb3038 Жыл бұрын
simply tell that you want to make such kind of program
@rajatdogra96
@rajatdogra96 2 ай бұрын
​@@bshsb3038Torrent duh 😂
@sz3066
@sz3066 2 жыл бұрын
Great Video !!!
@NormannCfC
@NormannCfC 2 жыл бұрын
DANKE!
@stifenjans4342
@stifenjans4342 2 жыл бұрын
Thanx, it's much help
@rayanehamaidi5050
@rayanehamaidi5050 11 ай бұрын
I understood everything in under an hour, you didn't leave any holes.
@mikhail1792
@mikhail1792 Жыл бұрын
You can actually get a degree on KZbin owing to guys like you! Thank you so much!!!!
@kanakdwivedi259
@kanakdwivedi259 2 ай бұрын
Soooooo GOOD . Amazing , I actually understand everything. WOW BRo More videos please. SUBBED
@nasserbenouara9354
@nasserbenouara9354 Жыл бұрын
usually RRrarelly comment but for you : "Aawsome content" keep up bro
@user-uf1tx8tk1c
@user-uf1tx8tk1c 3 ай бұрын
Thank you for the tutorial, I was wondering to know how can I get as faster as you went typing codes. Any tips please
@federicobau8651
@federicobau8651 Жыл бұрын
Best Video!
@PD-qu8dq
@PD-qu8dq Жыл бұрын
Great Video
@HariKrishnan-on1yf
@HariKrishnan-on1yf 2 жыл бұрын
Please make detailed video about proxy in python
@reviewer3448
@reviewer3448 Жыл бұрын
If I'm running a Virtual Machine and hosting on the same computer. Do I put the server script on my native operating system and the client on the virtual machine? I'm running kali on the virtual machine. Many thanks for your help.
@centralcoding
@centralcoding 9 ай бұрын
Which video do you recommend watch next???
@chandraagarwal9705
@chandraagarwal9705 6 ай бұрын
please also make a video on global socket connections
@codermomo1792
@codermomo1792 Ай бұрын
thanks, I made a reverse shell after this
@vickylondon1543
@vickylondon1543 Жыл бұрын
dude tNice tutorials is super good! subbed
@duongvuong8514
@duongvuong8514 Жыл бұрын
have a good day! thank you for your tutorial, but I still have a few question, would it be okay to ask? I assume in this case if we attempted to use the same script in different device but same network, the script or the port wouldn't change and we should just leave it as is? Cause it work when the same script executed on 1 of my computer but when I started the client on another, it just timed out. Again, I really appreciate your tutorial, thank you!
@prodigyprogrammer3187
@prodigyprogrammer3187 Жыл бұрын
But wouldnt the private Ip address change for each device so I think if you change the device make sure you change the IP address as well. I am not completely sure of this but I think that may be the issue
@DeAnalyst
@DeAnalyst 2 жыл бұрын
good stuff
@1q1q1q1q1q1q1qw
@1q1q1q1q1q1q1qw 2 жыл бұрын
thank you for you good videos. Would you think it would be possible to run such an server on an raspberry. i wounder if it would be possible to steer an cnc machine this way. so that the server gets gcode and interprets them.
@HypeAdal
@HypeAdal Жыл бұрын
Ēr
@klara5453
@klara5453 6 ай бұрын
Thanks
@kraldragon1324
@kraldragon1324 2 жыл бұрын
you are awesome !
@CAN_MIKE
@CAN_MIKE 2 жыл бұрын
If you will use an ESP32 to send sensor data over wifi, could I use sockets to retrieve the sensor data?
@trxiboy
@trxiboy 8 ай бұрын
how would I connect sockets through the internet
@karimk.434
@karimk.434 2 жыл бұрын
What software are you using to draw everything ?
@GHOST-fe3cu
@GHOST-fe3cu 2 жыл бұрын
yes, please, what are you using to write notes?
@gilmarjunio2815
@gilmarjunio2815 2 жыл бұрын
It seems like escalidraw
@ashwina7776
@ashwina7776 2 жыл бұрын
Bro make a video about raw sockets in python
@essyahgregory9342
@essyahgregory9342 Жыл бұрын
well understood king py
@sipp5657
@sipp5657 6 күн бұрын
Still a good one!
@asmodeus4310
@asmodeus4310 2 жыл бұрын
Fitness teacher's back
@itsfuckingtomboythursday
@itsfuckingtomboythursday Жыл бұрын
so what requests Module does is simply do a socket connection? Or am i Wrong?
@21Mayhem
@21Mayhem 2 жыл бұрын
how can you make the client always up like always listening/waiting for messages from the server (i tried using while loops didn't work)
@MohaMed-fr4lx
@MohaMed-fr4lx 2 жыл бұрын
how is the socket waiting for new connections ? don't we need to write a function so i can do that ?
@flimsy1417
@flimsy1417 2 жыл бұрын
nice
@murfoll__3074
@murfoll__3074 Жыл бұрын
Hey, NeuralNine I have tried running this code exactly as it is in the video, and I get the following error message when running the client.py file: TimeoutError: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. The code is exactly as it is in your video. What do you think is wrong here?
Coding A Simple Web Browser in Python
13:09
NeuralNine
Рет қаралды 85 М.
Python Socket Programming Tutorial
49:43
Tech With Tim
Рет қаралды 991 М.
Barriga de grávida aconchegante? 🤔💡
00:10
Polar em português
Рет қаралды 10 МЛН
The World's Fastest Cleaners
00:35
MrBeast
Рет қаралды 100 МЛН
Python Asynchronous Programming - AsyncIO & Async/Await
25:57
Tech With Tim
Рет қаралды 408 М.
Python Threading Explained in 8 Minutes
8:39
NeuralNine
Рет қаралды 114 М.
Python dataclasses will save you HOURS, also featuring attrs
8:50
TCP vs UDP Sockets in Python
17:43
NeuralNine
Рет қаралды 28 М.
Simple TCP Chat Room in Python
25:39
NeuralNine
Рет қаралды 202 М.
3 PYTHON AUTOMATION PROJECTS FOR BEGINNERS
17:00
Internet Made Coder
Рет қаралды 1,4 МЛН
Unlocking your CPU cores in Python (multiprocessing)
12:16
mCoding
Рет қаралды 286 М.
This Is Why Python Data Classes Are Awesome
22:19
ArjanCodes
Рет қаралды 782 М.
Infrared Soldering Iron from Cigarette Lighter
0:58
ALABAYCHIC
Рет қаралды 1,9 МЛН
iPhone 15 в реальной жизни
20:03
HUDAKOV
Рет қаралды 694 М.
Subscribe for more!! #procreate #logoanimation #roblox
0:11
Animations by danny
Рет қаралды 3,8 МЛН