SMB

In this guide, we demonstrate how to use the NoPorts Tunnel to mount a SMB share on a remote machine on 192.168.1.90 to localhost:9000 so we can access the SMB share service locally.

Prerequisites

Before continuing, make sure that the following steps have been completed:

  • NoPorts has been installed on both machines.

  • Your NoPorts atSigns are activated, and the associated keys are saved locally.

If you haven’t completed these steps, follow the appropriate installation guide on the Installation Instructions page, then return here once finished.

Command Line

The command should look like:

npt -f @<client> -t @<device> -d <device name> -r @<relay> -p 445 \
-h 192.168.1.90 -l 9000

Example:

npt -f @alice_client -t @alice_device -d my_server -r @rv_am -p 445 \
-h 192.168.1.90 -l 9000

NOTE Make sure the sshnpd daemon is allowing port 445 to the SMB file server see Basic Usage for details.

Now you can mount the SMB share locally using the finder app ( Go->Connect to server) on MacOs

Once mounted, you can use the file share as normal. As you dismount the file share, the NPT command will disconnect.

Windows mounting on a non-standard port is currently not supported by Microsoft but they are working on it.

If you need this functionality, it is possible but fiddly to set up. Contact us if you want to know how.

To learn more about NPT

npt Usage

Desktop Application

When using the NoPorts desktop application, your connection profile should look something like this:

Profile Name

My SMB Connection

Device atSign

@alice_device

Device Name

my_server

Relay

@rv_am

Local Port

9000

Local Host

localhost

Remote Host

Remote Port

445

Last updated