[GH-ISSUE #2961] [Feature Request] Sub System: Return Server IP in Config Instead of Domain #1980

Closed
opened 2026-10-31 20:22:22 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @Dylariz on GitHub (Apr 30, 2025).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/2961

I'm using the 3XUI panel with a domain for my VPN server (e.g., vpn.example.com) and subscriptions system. When clients access their subscription link, they are provided with a VPN configuration that contains the domain (e.g., vpn.example.com) in the server name field. This requires a DNS lookup, and if the domain gets blocked, the connection can be disrupted. Additionally, DNS resolution adds some delay in establishing the VPN connection.

Describe the solution you'd like

  • Add a setting in the panel that allows users to manually specify the IP address that should be returned in the VPN configuration instead of the domain. This gives administrators full control and flexibility, especially when dealing with domains that may be blocked or slow to resolve.
  • As an alternative, a simpler option could be to add a checkbox like “Return IP address instead of domain” which, when enabled, automatically replaces the domain with the server’s public IP in generated configurations.
  • For even better usability, consider making the IP-return mode the default behavior (with the option to fall back to the domain), as it improves performance and ensures a more stable connection in restricted network environments.

Example:
When a client accesses a subscription link like:
https://vpn.example.com:2299/sub/user1-xxxxxxxxxxxxxxx

Instead of receiving a config like this (which uses the domain):
vless://12345678-1234-1234-1234-123456789abc@vpn.example.com:443?type=tcp&security=reality&pbk=AbCdEfGhIjKlMnOpQrStUvWxYz1234567890abcdEfG&fp=chrome&sni=cloudflare.com&sid=abcdef12&spx=%2Fdns-query%2F&flow=xtls-rprx-vision#Test-VPN

It should return something like this (which uses the IP address instead):
vless://12345678-1234-1234-1234-123456789abc@123.123.123.123:443?type=tcp&security=reality&pbk=AbCdEfGhIjKlMnOpQrStUvWxYz1234567890abcdEfG&fp=chrome&sni=cloudflare.com&sid=abcdef12&spx=%2Fdns-query%2F&flow=xtls-rprx-vision#Test-VPN

Describe alternatives you've considered

Currently, I have to rely on DNS resolution, which can lead to issues if the domain gets blocked or DNS performance degrades. Using the IP directly in the config would be a more stable solution.

Checklist

  • This feature report is written entirely in English.
Originally created by @Dylariz on GitHub (Apr 30, 2025). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/2961 ### Is your feature request related to a problem? I'm using the 3XUI panel with a domain for my VPN server (e.g., vpn.example.com) and subscriptions system. When clients access their subscription link, they are provided with a VPN configuration that contains the domain (e.g., vpn.example.com) in the server name field. This requires a DNS lookup, and if the domain gets blocked, the connection can be disrupted. Additionally, DNS resolution adds some delay in establishing the VPN connection. ### Describe the solution you'd like - Add a setting in the panel that allows users to manually specify the IP address that should be returned in the VPN configuration instead of the domain. This gives administrators full control and flexibility, especially when dealing with domains that may be blocked or slow to resolve. - As an alternative, a simpler option could be to add a checkbox like “Return IP address instead of domain” which, when enabled, automatically replaces the domain with the server’s public IP in generated configurations. - For even better usability, consider making the IP-return mode the default behavior (with the option to fall back to the domain), as it improves performance and ensures a more stable connection in restricted network environments. Example: When a client accesses a subscription link like: https://vpn.example.com:2299/sub/user1-xxxxxxxxxxxxxxx Instead of receiving a config like this (which uses the domain): vless://12345678-1234-1234-1234-123456789abc@**vpn.example.com**:443?type=tcp&security=reality&pbk=AbCdEfGhIjKlMnOpQrStUvWxYz1234567890abcdEfG&fp=chrome&sni=cloudflare.com&sid=abcdef12&spx=%2Fdns-query%2F&flow=xtls-rprx-vision#Test-VPN It should return something like this (which uses the IP address instead): vless://12345678-1234-1234-1234-123456789abc@**123.123.123.123**:443?type=tcp&security=reality&pbk=AbCdEfGhIjKlMnOpQrStUvWxYz1234567890abcdEfG&fp=chrome&sni=cloudflare.com&sid=abcdef12&spx=%2Fdns-query%2F&flow=xtls-rprx-vision#Test-VPN ### Describe alternatives you've considered Currently, I have to rely on DNS resolution, which can lead to issues if the domain gets blocked or DNS performance degrades. Using the IP directly in the config would be a more stable solution. ### Checklist - [x] This feature report is written entirely in English.
bsakaguchi 2026-10-31 20:22:22 +07:00
Author
Owner

@somebodywashere commented on GitHub (May 2, 2025):

It's possible to write an IP or any other domain you want in "External Proxy" option of Inbound.

<!-- gh-comment-id:2847597742 --> @somebodywashere commented on GitHub (May 2, 2025): It's possible to write an IP or any other domain you want in "External Proxy" option of Inbound.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#1980
No description provided.