LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-12-2023, 02:16 PM   #16
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,137
Blog Entries: 6

Rep: Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826

Quote:
Can I also share an entire folder? how?
Everything in the directory that python -m http.server is run in, will be shared.
Open a web browser to http://127.0.0.1:8000 on the same machine, and you will see the contents of the directory.

Quote:
why if i type "https" instead of "http" it doesn't work?
It is a http server, not a https server.
 
Old 01-12-2023, 03:34 PM   #17
Almoc
LQ Newbie
 
Registered: Apr 2014
Posts: 10

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by teckk View Post
Everything in the directory that python -m http.server is run in, will be shared.
Open a web browser to http://127.0.0.1:8000 on the same machine, and you will see the contents of the directory.


It is a http server, not a https server.
Thanks!
however it is amazing that it can work even without root permissions. How is it possible?
 
Old 01-12-2023, 04:05 PM   #18
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,446
Blog Entries: 7

Rep: Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553
Quote:
Originally Posted by Almoc View Post
Thanks!
however it is amazing that it can work even without root permissions. How is it possible?
Port 8000 is not a privileged port. See here for more information: https://www.w3.org/Daemon/User/Insta...egedPorts.html
 
Old 01-12-2023, 05:33 PM   #19
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
wget can do recursive retrieval very easily with most protocols actually. It simply has to have a server to connect to. Http is one method though it works with most protocols (http, https, ftp, sftp, and many others). 'man wget' for more info.

If you have the sshd daemon running rsync is also a reliable tool for quick file transfers to & from a remote host.

Last edited by computersavvy; 01-12-2023 at 05:37 PM.
 
1 members found this post helpful.
Old 01-13-2023, 09:48 AM   #20
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,137
Blog Entries: 6

Rep: Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826
If you start a web server on 172.16.0.2, port 8100, and share a directory of files,

On a second machine on the LAN
Code:
wget -P "/destination/dir" -r -nd http://172.16.0.2:8100
Will get everything in the directory that you shared on 172.16.0.2:8100
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to proxy ftp packets between IPV4 ftp server and an IPV6 ftp client? Neeraj0019 Linux - Networking 5 11-16-2021 11:15 AM
when I use ftp://user@ftp.blah.com it works. But when I type just ftp.blah.com says.. hunterhunter Linux - General 15 03-05-2014 09:12 AM
LXer: Easy way to Build FTP server in Ubuntu Server 12.04 LXer Syndicated Linux News 0 05-29-2012 08:10 AM
LXer: Systems Solutions Teams with Open-Xchange to Deliver Easy-to-Deploy, Easy-to-Use Collaboration Server LXer Syndicated Linux News 0 02-22-2006 10:46 PM
Linux4RegularGuys - EASY FTP setup using vsftpd - READ THIS FOR EASY HELP DropHit Linux - Networking 4 11-25-2004 02:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration