D
D
Danil_kutny2019-08-24 18:30:08
IT education
Danil_kutny, 2019-08-24 18:30:08

How to learn programming after mastering the basics (python)?

My head hurts because I don't understand anything!
The fact is that I learned the basics of python programming and understand how to create simple programs, how to work with libraries, and so on. and now I just want to make a hello_wold site. I read a book about networks to understand what is Ethernet, UDP / TSP, now I know different protocols and so on. Right now I seem to know everything, I can create a socket and transfer text information. Ok, now you just need to bypass NAT using UPnP for example (so that my "server" can be accessed via the Internet), and use the http protocol to forward hello_world.html. I thought that everything would be very simple, but for two days now I have been trying to do this and I can not.
Each article on the topic explains the use of the word new protocol that I hear for the first time. I'm trying to understand this protocol, but while studying this protocol, I hear 5 more pieces. This is not to mention the fact that everything is written in academic language where nothing is clear. Same thing when I decided to learn http.
I'm desperate and just want advice, maybe I'm doing something wrong? Maybe I need to read another book and there will be no more questions? Help! Thank you for your
attention
. And apart from the socket library, nothing is needed for this, as far as I understand. To be honest, I don’t think that for such a simple task it is necessary to download a separate library

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
paran0id, 2019-08-26
@paran0id

In short, you want to make a web server. SimpleHTTPServer is the easiest option. Run, go to the address: port - you see the page. The option is more complicated and more correct already suggested above - this is Flask.
And yes, whether your server will be accessible from the outside depends on how your computer is connected to the Internet. Standard ports will most likely be slaughtered. The port will need to be forwarded on the router. Plus, you can still be behind a higher NAT, this is more difficult.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question