DEV Community

Cover image for Fastest way to transfer file within Ubuntu to Ubuntu or Mac to android on same network
Sahil kashyap
Sahil kashyap

Posted on • Edited on

2

Fastest way to transfer file within Ubuntu to Ubuntu or Mac to android on same network

Install

http-server
npm install --global http-server

open CMD,type in this

http-server
it returns

Starting up http-server, serving ./

http-server version: 14.1.1

http-server settings: 
CORS: disabled
Cache: 3600 seconds
Connection Timeout: 120 seconds
Directory Listings: visible
AutoIndex: visible
Serve GZIP Files: false
Serve Brotli Files: false
Default File Extension: none

Available on:
  http://127.0.0.1:8080
  http://192.168.0.116:8080
Hit CTRL-C to stop the server

Enter fullscreen mode Exit fullscreen mode

in other laptop open chrome,type this
http://192.168.0.116:8080

And start downloading

In Mac

Open terminal,Navigate to Downloads folder

sh cd Downloads

Type in this command

http-server ./ -p 1313

./ specifily will serve only the content in Download folder

-p is the port

Starting up http-server, serving ./

http-server version: 14.1.1

http-server settings:
CORS: disabled
Cache: 3600 seconds
Connection Timeout: 120 seconds
Directory Listings: visible
AutoIndex: visible
Serve GZIP Files: false
Serve Brotli Files: false
Default File Extension: none

Available on:
  http://127.0.0.1:1313
  http://192.168.0.108:1313
Hit CTRL-C to stop the server
Enter fullscreen mode Exit fullscreen mode

In Your android , open up chrome
Type in the url
http://192.168.0.108:1313

And select the file, it'll start downloading
in Android mobile

Image of Datadog

How to Diagram Your Cloud Architecture

Cloud architecture diagrams provide critical visibility into the resources in your environment and how they’re connected. In our latest eBook, AWS Solution Architects Jason Mimick and James Wenzel walk through best practices on how to build effective and professional diagrams.

Download the Free eBook

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more