Can't down file from localhost to router

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
Capture2
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 ?

1 Like

just use scp.

1 Like

I tried but error like when i used localhost image

Maybe a dumb question: do you have http server running at all on destination host?
And why are you trying localhost from router?

2 Likes

Yes I have image

This is your localhost (your PC).

try http:// <your pc ip here> /test/filename.abc

1 Like

nice catch there. :joy:

1 Like

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.

2 Likes