1
I am learning Golang and to practice I am doing some small "projects", my idea is just to share a folder of my Windows or some file through my local wifi network using the net/http package of Golang. I used this small code below to "upar" a folder and then be able to access in my mobile phone or notebook through the ip address.
import (
"log"
"net/http"
)
func main() {
http.Handle("/", http.FileServer(http.Dir("C:\\VIDEOS")))
log.Fatal(http.ListenAndServe(":8080", nil))
}
The code works and I can access the files through the browser on my PC, however I would like to know how I can "free" access to other devices in my network access the files too.
Solved the problem friend thanks for the help.
– Samuel Palmeira