April 29, 2026·12 min read·Blog

Tally Port 9000 Setup & Troubleshooting: Complete Guide

A

Akib Husain

Founder, TrulyInvoice — Building AI invoice automation for Tally since 2026

"You've installed an automation tool for Tally. It asks for the Tally Port. You enter 9000. It says 'Connection refused'. You check Tally settings — Port 9000 is enabled. You check the firewall — looks fine. Still no connection. Two hours later, you're still troubleshooting what should be a 5-minute setup."

Tally Port 9000 is essential for automation, remote access, and integration — but it's also the most common point of failure. This guide covers everything from basic setup to advanced troubleshooting, with specific solutions for the most common connection errors.

What is Tally Port 9000?

Tally Port 9000 is the communication port used by Tally Gateway Server, a built-in feature in Tally Prime and Tally ERP 9 that allows external applications to interact with Tally via HTTP requests.

When you enable Port 9000, Tally starts listening for incoming requests on that port. Automation tools like TrulyInvoice, remote access utilities, and ODBC drivers use this port to send data to Tally and retrieve information from it.

Key point: Port 9000 is disabled by default in Tally. You must explicitly enable it in Tally settings before any external application can connect to Tally.

Step-by-Step: Enable Port 9000 in Tally

Step 1 — Open Tally Configuration

Open Tally Prime or Tally ERP 9. Press F1 on your keyboard, or go to Gateway of Tally → F1: Configure. This opens the Tally configuration screen.

Step 2 — Navigate to Connectivity Settings

In the configuration menu, go to Settings → Connectivity → Tally Gateway Server. This is where Port 9000 settings are configured.

Step 3 — Enable Tally Gateway Server

Set 'Enable Tally Gateway Server' to 'Yes'. This activates the Tally Gateway Server feature, which allows external connections.

Step 4 — Set the Port Number

Set 'Port' to 9000. You can use a different port if 9000 is already in use, but 9000 is the standard and most tools expect this by default.

Step 5 — Save and Restart Tally

Press Enter to save the settings. Close Tally completely and reopen it. Port 9000 changes require a Tally restart to take effect.

Configure Windows Firewall for Port 9000

Windows Firewall often blocks incoming connections on Port 9000. You need to create a firewall rule to allow traffic.

Step 1 — Open Windows Defender Firewall

Press Windows Key, type 'Windows Defender Firewall with Advanced Security', and open it.

Step 2 — Create Inbound Rule

Click 'Inbound Rules' on the left → 'New Rule' on the right. Select 'Port' → Next → TCP → Specific local ports: 9000 → Next.

Step 3 — Allow Connection

Select 'Allow the connection' → Next. Choose Domain, Private, and Public based on your network needs. For LAN access, Domain and Private are sufficient.

Step 4 — Name the Rule

Name it 'Tally Port 9000' → Finish. The rule is now active and allows incoming traffic on Port 9000.

Test if Port 9000 is Working

After enabling Port 9000 and configuring the firewall, verify it's working:

Method 1 — Using Telnet

Open Command Prompt (cmd). Type 'telnet localhost 9000' and press Enter. If the screen goes blank, the port is working. If it says 'Could not open connection to host', the port is not listening.

Method 2 — Using Netstat

Open Command Prompt. Type 'netstat -an | findstr 9000' and press Enter. If you see a line with 'LISTENING' and ':9000', the port is active.

Method 3 — Using Browser

Open a web browser and go to 'http://localhost:9000'. If Tally Gateway Server is working, you'll see a Tally response or XML output.

Common Problems and Solutions

Problem: 'Connection Refused' Error

Cause: Tally Gateway Server is not enabled or Tally is not running.
Solution: Verify Tally Gateway Server is set to 'Yes' in Tally settings. Ensure Tally is open (not just minimized). Restart Tally after changing settings.

Problem: 'Connection Timed Out'

Cause: Firewall is blocking the connection or network issue.
Solution: Check Windows Firewall rules. Temporarily disable firewall to test. Verify network connectivity if connecting from another computer.

Problem: Port Already in Use

Cause: Another application is using Port 9000.
Solution: Use 'netstat -ano | findstr 9000' to find the process ID using the port. Either stop that application or configure Tally to use a different port.

Problem: Works on Localhost but Not from Other Computers

Cause: Firewall blocking external connections or network isolation.
Solution: Ensure firewall rule allows 'Public' network. Check if computers are on the same network. Verify IP address is correct.

Problem: Antivirus Blocking Connection

Cause: Third-party antivirus blocking Port 9000.
Solution: Add Tally.exe as an exception in your antivirus. Temporarily disable antivirus to test if it's the cause.

Security Best Practices for Port 9000

  • Don't expose Port 9000 directly to the internet. Use VPN for remote access.
  • Restrict access by IP address if possible in firewall rules.
  • Keep Tally updated to the latest version for security patches.
  • Use strong passwords for Tally user accounts.
  • Disable Port 9000 when not in use for extended periods.

Network Setup for LAN Access

To access Tally from another computer on the same network:

  • Ensure both computers are on the same network/subnet.
  • Find the IP address of the Tally computer (ipconfig in Command Prompt).
  • From the other computer, test connection: telnet [Tally-IP] 9000.
  • Configure automation tools to use the IP address instead of localhost.

Need Help with Port 9000 Setup?

TrulyInvoice's connector auto-detects Tally and guides you through Port 9000 setup. Start free with 300 vouchers.

Start Free

Frequently Asked Questions

What is Tally Port 9000 and why do I need it?

Tally Port 9000 is the port used by Tally Gateway Server to enable external applications to communicate with Tally. You need it for automation tools like TrulyInvoice to sync invoices to Tally, for remote access from other computers, and for ODBC connections. Without Port 9000 enabled, Tally runs in standalone mode only.

How do I enable Port 9000 in Tally?

Open Tally, press F1 (or go to Gateway of Tally → F1: Configure). Navigate to Settings → Connectivity → Tally Gateway Server. Set 'Enable Tally Gateway Server' to 'Yes'. Set 'Port' to 9000 (or any available port). Save the settings and restart Tally for changes to take effect.

Port 9000 is not working — what should I check?

First, verify Tally Gateway Server is enabled in Tally settings. Check Windows Firewall — it may be blocking Port 9000. Ensure no other application is using Port 9000. Verify Tally is running (not just minimized). Check if your antivirus is blocking the connection. Try telnet localhost 9000 to test if the port is listening.

How do I configure Windows Firewall for Tally Port 9000?

Open Windows Defender Firewall → Advanced Settings → Inbound Rules → New Rule. Select 'Port' → TCP → Specific local ports: 9000 → Allow the connection → Apply to Domain, Private, Public (or select based on your network) → Name it 'Tally Port 9000'. Repeat for Outbound Rules if needed.

Can I use a different port instead of 9000?

Yes, you can use any available port. However, 9000 is the standard and most automation tools expect this port by default. If you use a different port, you'll need to configure it in your automation tool's settings. Avoid ports below 1024 as they require admin privileges.

How do I test if Port 9000 is working?

Open Command Prompt and type 'telnet localhost 9000'. If the screen goes blank, the port is working. If it says 'Could not open connection', the port is not listening. Alternatively, use 'netstat -an | findstr 9000' to check if the port is in LISTENING state. You can also use online port scanners to test from external networks.

Can I access Tally remotely over the internet using Port 9000?

Technically yes, but it's not recommended for security reasons. Port 9000 was designed for LAN access. For internet access, use a VPN or Tally on Cloud solutions. If you must enable internet access, use strong authentication, restrict by IP, and keep Tally updated. Exposing Port 9000 directly to the internet is a security risk.

Chat with us