Informix Error -4997: Port number (%s) must be in the range 1024 - 65535
Cause and resolution
Port number (%s) must be in the range 1024 - 65535
The port number set in the FGLD_PORTNUMBER environment variable is not in the valid range 1024 - 65535.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-4997 fires when FGLD_PORTNUMBER is set to a value outside 1024-65535 — per the official
guidance.
FGLD_PORTNUMBERoutside the 1024-65535 range, per the official guidance — the direct, only cause.
Solutions / Resolution
- Set
FGLD_PORTNUMBERto a value within 1024 to 65535, per the official guidance.
Examples
An out-of-range FGLD_PORTNUMBER
$ export FGLD_PORTNUMBER=80
-- -4997: 80 is below the minimum of 1024
Corrected
$ export FGLD_PORTNUMBER=9090
Diagnostic Checks
- Check the value of
FGLD_PORTNUMBER, and correct it to fall within 1024-65535.
Related Errors / Related Topics
- -4996 — "Unknown host name or port number." A related
fgldconfiguration error, about host/port resolution failing generally rather than the port value's own range.
FGLD_PORTNUMBER is outside the valid 1024-65535 range — correct it.