Junos Space SDK > Developer Guides > Junos Space Application Developer Guide > Getting Started > Configuring your Environment

Understanding JSVA Ports and Modes

This topic describes the different JSVA ports and modes (network configuration).

Note: By default, JSVA operates in the NAT mode, but you can switch to the Bridge mode. To learn more about changing the configuration, see Changing Network Configuration from NAT to Bridged mode.

NAT Mode

NAT (Network Address Translation) means that the virtual machines have private IP addresses that are not routable from outside. In NAT, your host computer acts as the gateway to the network for the virtual machines, and nobody on your network is able to view them because these machines exists in a separate network. It is a configuration in which data passes with the protection of NAT.

Certain ports are reserved for use by the JSVA and should not be used for any other application on the host system. These ports are:

How to ssh to the JSVA in the NAT mode

VirtualBox is configured to use NAT networking for the JSVA. NAT is implemented in a variety of schemes of translating addresses and port numbers, each affecting application communication protocols differently. In some application protocols that use IP address information, the application running on a node in the masqueraded network needs to determine the external address of the NAT.

The Virtual Box virtual switch forwards the traffic from the host to the guest.

NAT networking is used in JSVA so that some ports on the host machine are translated to the JSVA port. Port forwarding is used to reach the JSVA from the host. To ssh into the JSVA from the host system, specify port 8022 on the ssh command line.

In addition, to reach the JSVA from the host where it is installed, use the local host IP address, 127.0.0.1. For example:

   ssh -p 8022 admin@127.0.0.1

To ssh into the JSVA from a remote workstation, use the IP address of the JSVA host and port 8022. For example:

   ssh -p 8022 admin@<IP Address>

Note: To transfer files to or from JSVA using scp, you can use the WinSCP tool. When using the WinSCP tool, you need to provide the following information:

Bridge Mode

Bridge mode is a configuration in which data passes directly through the router without the protection of network address translation. In Bridge mode, your host computer shares its network connection with the virtual machines as if there is another computer on your network, and everyone on the network is able to interact with it. In this configuration, data passes directly through the router without the protection of NAT. In Bridged mode, the JSVA runs as a distinct host machine in the same subnet as the actual host machine.

Note: The subnet mask should be the same for the Host system and the Junos Space Platform.

JSVA uses these ports are for the given purpose below:

How to ssh to the JSVA in Bridged mode

In the bridged mode, JSVA runs on a separate IP address within the same subnet. This IP address is specified during the switch mode process. To reach the JSVA from the host where it is installed, use the specified IP address, For example:

   ssh admin@<Bridged mode IP Address>

Note: To transfer files to or from JSVA using scp, you can use the WinSCP tool. When using the WinSCP took, you need to provide the following information: