WiFi Connection: Difference between revisions

From ARIS
Jump to navigation Jump to search
Pau (talk | contribs)
No edit summary
Pau (talk | contribs)
No edit summary
Line 46: Line 46:
##You'll see some comments at the beginning of the file, denoted by a "#" symbol.
##You'll see some comments at the beginning of the file, denoted by a "#" symbol.
##To add an entry, go to the end of the file on a new line.
##To add an entry, go to the end of the file on a new line.
##Enter the IP address you want to assign (such as "192.168.137.1") followed by a space and then the domain name you want to map to that IP address. For example: 192.168.137.1        aris
##Enter the IP address you want to assign (such as "192.168.137.1") followed by a space and then the domain name you want to map to that IP address. For example: 192.168.137.1        aris[[File:Hosts.png|900px|thumb|center|Editing hosts file]]
#Save the Changes:
#Save the Changes:
##After making your changes, click on "File" in the top-left corner.
##After making your changes, click on "File" in the top-left corner.
Line 53: Line 53:
##Close Notepad once you've saved the changes.
##Close Notepad once you've saved the changes.


After this steps, you must set the ARIS/Frontend/build/server_ip.txt with the same name as in the hosts file, instead of the IP address.
After this steps, you must set the ARIS/Frontend/build/server_ip.txt with the same name as in the hosts file, instead of the IP address.[[File:ArisURL.png|500px|thumb|center|Editing server_ip.txt]]


Once you start ARIS, it will run on the “aris” domain as set before. Accessing this domain in the browser of the devices connected to the HotSpot will samely run the application.
Once you start ARIS, it will run on the “aris” domain as set before. Accessing this domain in the browser of the devices connected to the HotSpot will samely run the application.[[File:ArisURL2.png|500px|thumb|right|Custom ARIS url]]

Revision as of 18:30, 16 April 2024


Default ARIS url

ARIS allows other devices in the same network as the central PC running the application to connect to the system and to work cooperatively. However, ARIS executes by default on “localhost” (i.e. the computer you are currently using, a way to access services or resources on your own machine without going over a network), and thus not allowing other devices (even if they are in the same network) to connect to this address.

Running ARIS on network URL[edit]

In order to be able to interconnect multiple devices to run ARIS simultaneously on the same network, you will need to:

  1. Look for the IP address (the unique number that identifies where the device is located on the network) of the central PC executing ARIS. Note that this IP address must be of an active network where both the central PC and the other devices MUST connect. To get the IP address of the central PC:
    1. Open Settings: Click on the Start menu (Windows icon) located at the bottom-left corner of your screen. Then click on the gear icon labeled "Settings" to open the Windows Settings menu.
    2. Navigate to Network & Internet Settings: In the Windows Settings menu, click on the "Network & Internet" option. This will take you to settings related to your network connections.
    3. View Network Status: In the Network & Internet settings, you'll see various options on the left side. Click on "Status." This will show you an overview of your network status.
    4. Change Adapter Options: Under the "Status" section, find and click on the "Change adapter options" link. This will open a window displaying all the network adapters available on your computer.
    5. Find Active Network Connection: In the Network Connections window, you'll see a list of network adapters. Identify the available network connection (one from these 3 in the following example: Ethernet, Wi-Fi or HotSpot (Local Area Connection)) where ARIS will run. Note that the chosen network MUST be also available for the other devices to connect too. Right-click on the active network connection and select "Status" from the context menu.
      Network Connections example
    6. Check Connection Status: In the Status window for your network connection, click on the "Details" button. This will open a new window displaying detailed information about your network connection.
    7. Find IP Address: In the Network Connection Details window, look for the "IPv4 Address" field. This field will display your active IP address.
      Network Connection details example
    8. Note Down the IP Address: Take note of the IP address displayed next to "IPv4 Address." This is the active IP address of your PC on the network.
  2. Copy this IP address in the ARIS\Frontend\build\server_ip.txt file:
    1. Navigate to C:\Users\Public folder and find the ARIS\Frontend\build\server_ip.txt file.
    2. Copy the selected IP address to this file, removing the previous content.
      Editing server_ip.txt
    3. Save the changes and close the file.

Now, the next time ARIS starts, it will run in the desired url.

ARIS on network URL

Once at this point, you can type the url (192.168.1.111:3000 in the example) in a browser of another device connected to the same network and run ARIS simultaneously. In this example, the selected network to run ARIS was "MiFibra-842E” (Wi-Fi). So all devices connected to this network, can thus access the application samely as in the central PC.

Setting custom name for ARIS URL – hosts file[edit]

NOTE: Valid only for HotSpot connections (Wi-Fi and Ethernet connections will not be able to run the application with the custom name)

Furthermore, there is the option the set a name instead of the numeric IP address so it can be easier to remember. For this purpose, we must edit the Windows hosts file:

  1. Open Notepad as an Administrator:
    1. Click on the Start menu (Windows icon) located at the bottom-left corner of your screen.
    2. Type "Notepad" into the search bar.
    3. Right-click on Notepad in the search results.
    4. Select "Run as administrator" from the context menu. If prompted for permission, click "Yes."
  2. Open the Hosts File:
    1. In Notepad, click on "File" in the top-left corner.
    2. Choose "Open."
    3. In the file explorer window, navigate to the following location: C:\Windows\System32\drivers\etc
    4. Change the file type dropdown menu to "All Files" to make sure you can see the hosts file.
    5. Select the file named "hosts" and click "Open."
  3. Edit the Hosts File:
    1. The hosts file will open in Notepad.
    2. You'll see some comments at the beginning of the file, denoted by a "#" symbol.
    3. To add an entry, go to the end of the file on a new line.
    4. Enter the IP address you want to assign (such as "192.168.137.1") followed by a space and then the domain name you want to map to that IP address. For example: 192.168.137.1 aris
      Editing hosts file
  4. Save the Changes:
    1. After making your changes, click on "File" in the top-left corner.
    2. Choose "Save" to save the changes to the hosts file.
  5. Close Notepad:
    1. Close Notepad once you've saved the changes.

After this steps, you must set the ARIS/Frontend/build/server_ip.txt with the same name as in the hosts file, instead of the IP address.

Editing server_ip.txt

Once you start ARIS, it will run on the “aris” domain as set before. Accessing this domain in the browser of the devices connected to the HotSpot will samely run the application.

Custom ARIS url