Hi, I have Tp link wr 841N, i was up frimware openwrt, now i want down some file from localhost to router. I use command: wget http://localhost/test/filename.abc
But i have error https://uphinhnhanh.com/image/SfK7uO
I try down from host but have error
So how i can up file to my router. I need up 1 file html, 1 file sh and some file png.
Sorry if you don't understand my question because my English is very bad and i'm amateur
Does it work if you replace http://localhost/test/filename.abc
with http://127.0.0.1/test/filename.abc
?
just use scp.
I tried but error like when i used localhost
Maybe a dumb question: do you have http server running at all on destination host?
And why are you trying localhost from router?
Yes I have
This is your localhost (your PC).
try http:// <your pc ip here> /test/filename.abc
nice catch there.
Localhost is the machine you are running the command on. localhost on the router would be the uhttp server in the router itself which usually serves LuCI, though you can put any other files you want in the /www directory (until the flash is full). Other than as a test, it is pointless to wget from yourself, you can just copy out of the www directory.