[GH-ISSUE #1288] How to configure frpc.ini if my VPS without domains? #1020

Closed
opened 2026-05-05 12:39:24 -06:00 by gitea-mirror · 3 comments
Owner

Originally created by @NightMarcher on GitHub (Jun 15, 2019).
Original GitHub issue: https://github.com/fatedier/frp/issues/1288

Version: 0.27.0

I got a web server within LAN, which is wanted to be accessed from outer network. I deployed frps on my vps without domains. It can be connected by frpc on my web server, but not correctly.

If custom_domains and subdomain were not set, custom_domains and subdomain should set at least one of them will be raised. If I set any of them, when I browse x.x.x.x:8080 (server_addr:vhost_http_port) in chrome, I got [W] [http.go:223] http: proxy error: no such domain: x.x.x.x.

So if my VPS without domains, frp cannot work? I am confused, please help!

Originally created by @NightMarcher on GitHub (Jun 15, 2019). Original GitHub issue: https://github.com/fatedier/frp/issues/1288 Version: 0.27.0 I got a web server within LAN, which is wanted to be accessed from outer network. I deployed frps on my vps without domains. It can be connected by frpc on my web server, but not correctly. If custom_domains and subdomain were not set, `custom_domains and subdomain should set at least one of them` will be raised. If I set any of them, when I browse `x.x.x.x:8080` (server_addr:vhost_http_port) in chrome, I got `[W] [http.go:223] http: proxy error: no such domain: x.x.x.x`. So if my VPS without domains, frp cannot work? I am confused, please help!
Author
Owner

@fatedier commented on GitHub (Jun 16, 2019):

Use type tcp.

Or set custom_domains = { server_addr }.

<!-- gh-comment-id:502463457 --> @fatedier commented on GitHub (Jun 16, 2019): Use type `tcp`. Or set `custom_domains = { server_addr }`.
Author
Owner

@NightMarcher commented on GitHub (Jun 17, 2019):

Problem solved, mush appreciated!

<!-- gh-comment-id:502506333 --> @NightMarcher commented on GitHub (Jun 17, 2019): Problem solved, mush appreciated!
Author
Owner

@ihmc3jn09hk commented on GitHub (Sep 8, 2021):

With https, if server_addr = 1.1.1.1, setting the domain to the server ip is not working, e.g. custom_domains = 1.1.1.1.
Any help ?

<!-- gh-comment-id:915288125 --> @ihmc3jn09hk commented on GitHub (Sep 8, 2021): With https, if `server_addr = 1.1.1.1`, setting the domain to the server ip is not working, e.g. `custom_domains = 1.1.1.1`. Any help ?
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: github-starred/frp#1020
No description provided.