publish_files_http.txt          2025-04-12

Publishig files  (from linux)
===============
1. Create directory containing pubic files


Local
=====
1. $ cd <public directory>
   $ python3.12 -m http.server
2. $ firefox localhost:8000


Intranet
========
1. # zypper in firewall-config  (for openSUSE)
2. # firewall-config
     wlan0 = public
     public | ports | Add | 8000 Tcp | OK
     Configuration = Permanent
     File | Quit
3. on intranet computer:
   $ ip addr show  -->  192.168.0.164
   cp files to <public directory>
4. $ ssh <user>@<intranet computer>
   $ cd <public directory>
   $ python3.12 -m http.server
5. $ firefox 192.168.0.164:8000


Internet
========
1. # zypper in firewall-config  (for openSUSE)
2. # firewall-config
     wlan0 = public
     public | ports | Add | 8000 Tcp | OK
     Configuration = Permanent
     File | Quit
3. login router:
   192.168.0.1 : F..7
4. Advanced settings | Security | Port forwarding
   Create a new rule
      Local ip      = 164
      Local port    = 8000
      External port = 8000
      Protocol      = TCP
      Enbled        = On
      Add Rule
5. Admin | Info
   IPv4 address  -->  86.18.23.6
6. $ cd <public directory>
   $ python3.12 -m http.server
7. from internet:
   $ firefox 86.18.23.6:8000
