Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

how can I transfer files between two nodes on node.js #1023

Closed
@kappabooom

Description

@kappabooom
  • Version:
  • Platform:mac osX
  • Subsystem:

Type:Question

Severity:Medium

Description:

I want to transfer files between node1 and node2.
the way I tried is that use node1 connect node2, then use node2 add files, use node1 get.
I have two question~
1.is it a right way to transfer files
2.when I tried to connect two nodes, I saw 4 port
Swarm listening on /libp2p-webrtc-star/dns4/star-signal.cloud.ipfs.team/wss/ipfs/Qmf3ySkYqLET9xtAtDzvAr5Pp3egK1H3C5iJAZm1SpLEp6
Swarm listening on /ip4/127.0.0.1/tcp/4008/ws/ipfs/Qmf3ySkYqLET9xtAtDzvAr5Pp3egK1H3C5iJAZm1SpLEp6
Swarm listening on /ip4/127.0.0.1/tcp/4007/ipfs/Qmf3ySkYqLET9xtAtDzvAr5Pp3egK1H3C5iJAZm1SpLEp6
Swarm listening on /ip4/10.232.225.251/tcp/4007/ipfs/Qmf3ySkYqLET9xtAtDzvAr5Pp3egK1H3C5iJAZm1SpLEp6
but I don't know which one should I use.
THANKS!!

Steps to reproduce the error:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions