Change ScriptX Port to 41191

Have more questions? Submit a request

This article will give step by step instructions for updating the ScriptX Orchestrator Port to load on Port 41191. Sometimes when ScriptX is installed it will load to Port 41192 which will cause errors with printing in Badge[on]Demand. Any user can update the port and clear these errors.

Wrong Port Error:

Option 1 - Using Windows PowerShell

Step 1: Search for Windows PowerShell in the Windows Search Bar:

  1. Select 'Run as Administrator' - This will launch the Windows PowerShell Application.

Step 2: Copy the below code into the editor panel and press Enter

 

# Define the path to the JSON file
$jsonPath = "C:\Users\Onsite\AppData\Local\MeadCo\ScriptXServices\appsettings.json"

# Read the JSON content
$jsonContent = Get-Content $jsonPath -Raw | ConvertFrom-Json

# Set the port value
$jsonContent.ServerHost.Endpoints.Http.Port = 41191

# Save the modified JSON back to file (formatted output)
$jsonContent | ConvertTo-Json -Depth 10 | Set-Content -Path $jsonPath -Encoding UTF8

# Restart the computer with a delay and a message
Write-Host "Restarting the computer in 10 seconds..."
Start-Sleep -Seconds 10
Restart-Computer -Force
  1. This will run the script to update theappsettings.json file to use the correct port automatically. 
  2. The script will also force a restart after 10 seconds.

Option 2 - Manually Update File

Step 1: Open the Configuration Folder

  1. Press Windows + R on your keyboard to open the Run dialog.

  2. Type the following path and press Enter
    %LOCALAPPDATA%\MeadCo\ScriptXServices
  3. This will open the folder containing the appsettings.json file.

Step 2: Locate the appsettings.json File

  1. Right-click on appsettings.json and select Open with > Notepad.

Step 3: Edit the File to Set the Port:

  1. Locate the line of JSON with the Port listed. Edit the port to be "41191"


  2. In Notepad, click File > Save.

  3. Close Notepad.

Step 5: Restart Your Computer

  1. To apply the changes, please restart the computer.

This knowledge article provides information on specific Expo Logic features. To ensure continuity with documentation and product functionality, Expo Logic reserves the right to amend or update this knowledge article as needed. For more information, reach out to Expo Logic Support.

Articles in this section

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.