<< Click to display Table of Contents >> Navigation: Components > Hive Configurator webinterface > Configuration > App examples > Share SMB server as connection (Windows) |
To be able to use an SMB connection via bestzero® in Windows, you need Windows 11 24H2 or higher. WebDAV is an alternative. |
In this chapter you will learn how to share an SMB (Server Message Block) connection via bestzero®.
First, make sure that the server on which the Hive is installed can connect to the SMB server.
1. Create a new app
For instructions on how to do this, see the chapter Create a new app.
2. Zero App Detail
You can set the DNS as you wish, while the port in the Zero App Detail must be set to “4445”.
Example:
DNS |
networkdrive.cordaware.local |
Port(Range) Port,Port1-Port2 |
4445 |
3. Zero App Source
The address in the Zero App Source is that of the SMB Server, whereby the port must be set to “445”.
Example:
Addresse |
localhost |
Port(Range) Port,Port1-Port2 |
445 |
4. connection from client to SMB server
To establish a connection from a client to a shared resource, this batch/CMD script must be executed after the bestzero Appsbox® has established a connection.
Replace networkdrive.cordaware.local with your DNS and the name of the shared folder drive with the name of your network folder.
To execute this script, you need admin rights. |
|
netsh int ip add address "Loopback" 172.17.0.1
netsh interface portproxy add v4tov4 listenport=4445 listenaddress=172.17.0.1 connectaddress=networkdrive.cordaware.local connectport=4461
net use Z: \\172.17.0.1\drive /TRANSPORT:TCP /TCPPORT:4445 |
The IP address used 172.17.0.1 can be changed, it is only important that this is in the private IP address range. It is also possible to change the port 4445. Please note that the port must be changed in the hive configuration under Zero App Detail and in the script.
After the script has been successfully executed, you can use the network drive in Windows Explorer.