This is a signal server backend template for Instadrop. You can deploy this on:
- your server with a public IP (enabling cross-subnet file transfer/file trasfer when not connected to same WIFI network)
- your home computer(enabling LAN file transfer only)
This server backend is powered by Express.js + socket.io, with a core duty of signaling for WebRTC service.
- Clone this repository.
$ git clone https://github.com/ItzJerry317/InstaDrop-server.git- Install Node.JS dependencies in project folder.
$ npm install- Start the server.
$ node server.js- You should see messages like this:
====================================
Instadrop Signaling Server Running
Port: 3000
====================================Tip
If you are looking for port listening customization, please go here
You can change the listening port by editing the startup variable when starting up the server. For example:
(bash)
PORT=8080 node server.js(Powershell)
$env:PORT=8080; node server.jsIf successful, you should see messages like this:
====================================
Instadrop Signaling Server Running
Port: 8080
====================================Tip
The default listening port is 3000.
If you start up without a variable, the program will automatically set 3000 as its listening port.
Please open up your InstaDrop client, go to Settings -> Advanced network settings and set the Signal server value to your own server. For example:
http://your.server-url.com:3000