How to Change Ports in Hiddify (Fix Telegram Connection Issues)

Hiddify's default port differs from Clash, causing connection issues for some apps. Learn how to change the port to 7890.

Why Change Ports?

Many users migrating from Clash to Hiddify find that Telegram or other development tools fail to connect.

This is because:

  1. Different Defaults: Clash uses port 7890 by default, while Hiddify uses 2334.
  2. Legacy Settings: Apps like Telegram often have manual proxy settings fixed to 127.0.0.1:7890.

When you switch to Hiddify, the listening port changes, but your apps are still trying to connect to the old port 7890.

Step-by-Step Guide

The easiest solution is to change Hiddify’s port to 7890.

1

Open Settings

Go to Settings in Hiddify

2

Change Port

Set Mixed Port to 7890

3

Reconnect

Reconnect to apply changes

Detailed Instructions

  1. Go to Settings Open Hiddify and click on the Settings button.

  2. Find Port Settings Look for Inbound or Network settings. Find the Mixed Port option.

  3. Change the Value Change the default 2334 to 7890.

    Port Conflict Warning: If you still have Clash installed and running, setting Hiddify to 7890 will cause a port conflict, and neither will work.

    Please ensure Clash is completely closed before making this change!

  4. Save and Reconnect Return to the main screen and click the large connection button to Reconnect.

Verify the Fix

Open Telegram:

  1. Go to Settings -> Data and Storage -> Proxy.
  2. Ensure the proxy is set to 127.0.0.1 and port 7890.
  3. If the status changes to “Connected”, you are all set!

Other Solutions

Besides changing the port, you can also:

  • Update App Settings: Change the proxy port in Telegram to Hiddify’s default 2334.
  • Use TUN Mode: Enable TUN Mode in Hiddify settings. This routes all system traffic through Hiddify, often allowing Telegram to work without manual proxy settings.