This is port 80 for clear-text connections and 443 for encrypted (TLS) connections.
Yes you do have to program it first.
Answer:
The three basic types of control structures are sequential, selection and iteration. They can be combined in any way to solve a specified problem. Sequential is the default control structure, statements are executed line by line in the order in which they appear.
Crunchyroll or my anime list. Both of these work.
Hope this helps you