[GH-ISSUE #2094] Why frp can't get http? #1665

Closed
opened 2026-05-05 13:03:50 -06:00 by gitea-mirror · 1 comment
Owner

Originally created by @hushanjushi on GitHub (Nov 22, 2020).
Original GitHub issue: https://github.com/fatedier/frp/issues/2094

I'm trying use frp to get attach to the website of my no-pubilc-ip machine. Now my question is:

I can ssh through ssh -p 5040 root@XX.XX.XX.XX (XX.XX.XX.XX is my another machine's pubilc-ip) now.But I can't get my website through XX.XX.XX.XX:5020. And I can get it through 192.168.1.100. I don't know how to deal with it.

Below is my frp configuration (no ip and token):
frps.ini

[common]
bind_port = 5001
dashboard_port = 5010
token = -----
dashboard_user = ----
dashboard_pwd = ---
vhost_http_port = 5020
vhost_https_port = 5030

frpc.ini

[common]
server_addr = XX.XX.XX.XX
server_port = 5001
token = ---------

[ssh]
type = tcp
local_ip = 127.0.0.1
local_port = 22
remote_port = 5040

[web]
type = http
local_port = 80
custom_domains = 192.168.1.100

And in Edge ,XX.XX.XX.XX:5020 show:

The page you requested was not found.
Sorry, the page you are looking for is currently unavailable.
Please try again later.

The server is powered by frp.

Faithfully yours, frp.
Originally created by @hushanjushi on GitHub (Nov 22, 2020). Original GitHub issue: https://github.com/fatedier/frp/issues/2094 I'm trying use frp to get attach to the website of my no-pubilc-ip machine. Now my question is: I can ssh through ssh -p 5040 root@XX.XX.XX.XX (XX.XX.XX.XX is my another machine's pubilc-ip) now.But I can't get my website through XX.XX.XX.XX:5020. And I can get it through 192.168.1.100. I don't know how to deal with it. Below is my frp configuration (no ip and token): frps.ini ``` [common] bind_port = 5001 dashboard_port = 5010 token = ----- dashboard_user = ---- dashboard_pwd = --- vhost_http_port = 5020 vhost_https_port = 5030 ``` frpc.ini ``` [common] server_addr = XX.XX.XX.XX server_port = 5001 token = --------- [ssh] type = tcp local_ip = 127.0.0.1 local_port = 22 remote_port = 5040 [web] type = http local_port = 80 custom_domains = 192.168.1.100 ``` And in Edge ,XX.XX.XX.XX:5020 show: ``` The page you requested was not found. Sorry, the page you are looking for is currently unavailable. Please try again later. The server is powered by frp. Faithfully yours, frp. ```
Author
Owner

@hushanjushi commented on GitHub (Nov 22, 2020):

And the XX.XX.XX.XX has already a ssl website

<!-- gh-comment-id:731725464 --> @hushanjushi commented on GitHub (Nov 22, 2020): And the XX.XX.XX.XX has already a ssl website
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#1665
No description provided.