FileMakerPortScanner is a versatile open source and cross-platform PowerShell script designed to validate the connectivity of essential FileMaker Server ports. Whether you’re using Windows, macOS, or Linux (including WSL), this tool ensures your FileMaker Server environment is accessible and configured correctly for optimal performance.

Why Use FileMakerPortScanner?

FileMakerPortScanner simplifies troubleshooting and system checks by automating ICMP reachability tests (ping) and port status validation. With support for both IPv4 and IPv6, it’s an indispensable tool for system administrators working in heterogeneous environments.


Features of FileMakerPortScanner

Key Features:

  1. Cross-Platform Compatibility:
    • Fully functional on Windows, macOS, Linux, and WSL (Windows Subsystem for Linux).
  2. ICMP Connectivity Tests:
    • Test reachability using ICMP (ping) for both IPv4 and IPv6.
  3. Port Connectivity Tests:
    • Check the status (open/closed) of essential FileMaker Server ports using a TCP client.
  4. Customizable Output:
    • Export results to a user-defined file for easy sharing and troubleshooting.
  5. Predefined Port List:
    • Includes all critical ports required for FileMaker Server and related services.
  6. Smart Path Handling:
    • Automatically adjusts file paths for Windows and Unix-style systems.

Ports Checked by FileMakerPortScanner

The script tests the following ports critical to FileMaker Server functionality:

FileMaker Server (Primary Machine):

  • Open Ports: 80, 443, 2399, 5003

Database Server:

  • Available Ports: 1895, 5013, 8091, 16001, 16004, 50003, 50004

Web Publishing Engine:

  • Available Ports: 3000, 8998, 9889, 9898, 16003, 16020, 16021

FileMaker Server (Secondary Machine):

  • Open Ports: 80, 443, 16003

Additional Services:

  • FileMaker Pro, Go, WebDirect, and Custom Web Publishing: 80, 443, 5003
  • ODBC/JDBC: 2399
  • Data API: 443
  • Admin Console: 443
  • Monitoring (Zabbix): Ports 10050 (passive checks) and 10051 (active checks)

System Requirements

To use FileMakerPortScanner, ensure the following:

  • PowerShell Version: PowerShell 7.4.x or later.
  • Operating System:
    • Windows: Windows 10, Windows 11, or Windows Server.
    • macOS: Version 10.13 (High Sierra) or later.
    • Linux/WSL: Any modern distribution (e.g., Ubuntu, Fedora, Debian).
  • Network Access: Ensure the machine running the script can connect to the target server/network.
  • Permissions: Sufficient rights to execute PowerShell scripts and create files.

How to Use FileMakerPortScanner

Follow these steps to get started:

1. Download the Script

Clone or download the repository to your local machine:

git clone https://github.com/DimitrisKok/FileMakerPortScanner.git

2. Run the Script

Navigate to the folder containing the script and execute it in PowerShell:

pwsh ./FileMakerPortScanner.ps1

3. Provide Input

The script will prompt you for the following:

  1. IPv4 Address: Enter the IPv4 address of the server.
  2. IPv6 Address: Optionally, enter the IPv6 address or leave blank if not applicable.
  3. Export File Path:
    • For Windows, paths like C:\Reports\FileMaker_Port_Check_Report.txt are supported.
    • For macOS/Linux/WSL, paths like /home/username/FileMaker_Port_Check_Report.txt are used.

If no path is provided, the script will use:

  • Windows Default: C:\Reports\FileMaker_Port_Check_Report.txt
  • macOS/Linux Default: $HOME/FileMaker_Port_Check_Report.txt

4. View the Report

The script generates a detailed report in the specified file. This report includes:

  • ICMP reachability for both IPv4 and IPv6.
  • Port status (open/closed) for all predefined ports.
  • A timestamp for when the tests were performed.

Example Output:

FileMaker Server Port Connectivity Report
Checked on 12/11/2024 10:30 AM
Server IPv4: 192.168.1.10
Server IPv6: fe80::1

ICMPv4 Test:
IPv4 (192.168.1.10): Reachable

ICMPv6 Test:
IPv6 (fe80::1): Reachable

Port Connectivity Test:
80: Open
443: Open
2399: Closed
5003: Open
...

5. Customize the Port List

You can adjust the list of ports to be checked by modifying the $portsToCheck array in the script:

$portsToCheck = @(80, 443, 5003, 16000)

Download the Script:

FileMakerPortScanner simplifies server connectivity testing and ensures your environment is running smoothly. Whether you’re troubleshooting an issue or performing routine maintenance, this script is your go-to solution for FileMaker Server connectivity validation.

Check it out today: FileMakerPortScanner on GitHub


License

FileMakerPortScanner is licensed under the MIT License.