Skip to main content

Troubleshoot

Problem: Web browser cannot connect to locally running FairCom Server

Figure 1. Error
Error

The error that is received when there are issues connecting to FairCom's browser-based applications



Solution: Use 127.0.0.1 instead of localhost

Tips for using 127.0.0.1 instead of localhost:
  • To test FairCom database web tools use use http://127.0.0.1:8080/ or https://127.0.0.1:8443/ instead of http://localhost:8080/ or https://localhost:8443/.

  • It is best practice to use 127.0.0.1 instead of localhost to ensure you connect to your local computer because localhost does not work reliably in some languages, such as Python. Also, your computer's hosts files and/or DNS settings may be configured to redirect the localhost domain name to another computer besides your local computer.

  • If you use 127.0.0.1 you do not have to worry about the behavior of localhost and the hosts file.

  • If you want to verify how your hosts file modifies the behavior of localhost, you can open it in any editor to see what IP address it maps to localhost.

  • In Windows, the hosts file is located in C:\Windows\System32\drivers\etc.

    By default, it uses DNS to map localhost. Your DNS server typically maps localhost to 127.0.0.1, but it can map it anywhere and this can cause problems.

  • In Linux, the hosts file is located in the /etc folder.

    By default, Linus maps localhost to 127.0.0.1.