rpt icon indicating copy to clipboard operation
rpt copied to clipboard

端口由于某种原因没有突破

Open dollonov opened this issue 2 years ago • 19 comments

我的配置: Client.yml: serverIp: f2.russianodes.com serverPort: 26048(第一个端口)

TCP时domain可不填写 HTTP时remotePort可不填写

config:

  • proxyType: TCP localIp: 192.168.0.154 localPort: 25565 remotePort: 25608(第二港口) description: minecraft server.

Server.yml: #服务端绑定IP serverIp: 0.0.0.0 #服务端与客户端通讯端口 serverPort: 26048(第一个端口)

在程序中:Lighttunnel 类似的配置工作.

Client logs:https://pastebin.com/ibQm8QTT Server logs:https://pastebin.com/BQYftFHb Server Java 18 Clinet java 8/17

dollonov avatar Jun 27 '22 14:06 dollonov

服务端没有配置token吧 我看你服务端的日志 都是授权连接失败

iamlinhui avatar Jun 27 '22 23:06 iamlinhui

@dollonov

server.yml

serverIp: 0.0.0.0
serverPort: 26048
token:
  - clientKey: 123456
    minPort: 1
    maxPort: 65535

client.yml

serverIp: f2.russianodes.com
serverPort: 26048 # 客户端和服务端通讯端口
clientKey: 123456

config:
  - proxyType: TCP
    localIp: 192.168.0.154
    localPort: 25565
    remotePort: 25565 # 这个端口是将本地192.168.0.154:25565服务暴露在服务端的端口,可以取1-65535任意都行
    description: minecraft server

iamlinhui avatar Jun 28 '22 02:06 iamlinhui

由于某种原因,你的选择没有帮助 是我干的:https://www.youtube.com/watch?v=oy5X9ze1Pm4

dollonov avatar Jun 28 '22 06:06 dollonov

f2.russianodes.com:25565 image @dollonov

iamlinhui avatar Jun 28 '22 07:06 iamlinhui

I made the logic of restricting the port to Chinese IP @dollonov you can use the lastest server.jar https://github.com/iamlinhui/rpt/releases/download/2.5.0/rpt-server-2.5.0.jar

iamlinhui avatar Jun 28 '22 07:06 iamlinhui

@dollonov you need modify client.yml

client.yml

serverIp: f2.russianodes.com
serverPort: 26048
clientKey: 123456

config:
  - proxyType: TCP
    localIp: 192.168.0.154
    localPort: 25565
    remotePort: 25608
    description: minecraft server

after you conncet f2.russianodes.com:25608

iamlinhui avatar Jun 28 '22 08:06 iamlinhui

@dollonov вам нужно изменить client.yml

client.yml

serverIp: f2.russianodes.com
serverPort: 26048
clientKey: 123456

config:
  - proxyType: TCP
    localIp: 192.168.0.154
    localPort: 25565
    remotePort: 25608
    description: minecraft server

после того, как вы соединитесь f2.russianodes.com:25608

it worked when you changed something in the program

dollonov avatar Jun 28 '22 08:06 dollonov

pay attention to setting complex password (clientKey), 123456 is not the best choice

iamlinhui avatar Jun 28 '22 08:06 iamlinhui

pay attention to setting complex password (clientKey), 123456 is not the best choice

however, the program is not stable. when I blow up a lot of tnt, there is a disconnection from the server

dollonov avatar Jun 28 '22 08:06 dollonov

in Lighttunnel there was only a problem in buffer overflow ram, for some reason, it was not cleaned extra clogged.

dollonov avatar Jun 28 '22 08:06 dollonov

i'll reproduce this scene later

iamlinhui avatar Jun 28 '22 09:06 iamlinhui

everything works fine on the local connection - it turns out the program is not stable

dollonov avatar Jun 28 '22 11:06 dollonov

c Lighttunnel Server the connection worked stably but the memory was clogged: Lighttunnel Server.

dollonov avatar Jun 28 '22 11:06 dollonov

I have tested this usage scene, but it has always been normal, no disconnection, um ...

iamlinhui avatar Jun 28 '22 14:06 iamlinhui

I have tested this usage scene, but it has always been normal, no disconnection, um ...

keepalive how much is the default in your program? what version of the server was launched? client version?

dollonov avatar Jun 28 '22 16:06 dollonov

can you log in to my server to check? my ip f2.russianodes.com:25608. write the time when you can log in to check, at this time I will start the server.

dollonov avatar Jun 28 '22 16:06 dollonov

I have tested this usage scene, but it has always been normal, no disconnection, um ...

keepalive how much is the default in your program? what version of the server was launched? client version?

keepalive 20/30s in 1 min minecraft client/server version -> 1.19

iamlinhui avatar Jun 28 '22 17:06 iamlinhui

I have tested this usage scene, but it has always been normal, no disconnection, um ...

keepalive how much is the default in your program? what version of the server was launched? client version?

keepalive 20/30s in 1 min minecraft client/server version -> 1.19

my server: kernel airplane(kernel server) version 1.17.1 client fabric 1.17.1. keepalive may need to somehow increase its value, that's the point (well, it's not accurate) https://www.spigotmc.org/threads/keep-alive-packets-timing-out-players-after-25-seconds.293721/

dollonov avatar Jun 28 '22 17:06 dollonov

logged into the server via velocity(minecraft proxy server) it stopped flying out, but the friezes from the explosions still remained as well as the high ping. unfortunately, here your program is not optimized already compared to Lighttunnel. Problem:Lighttunnel that he doesn't clean his memory thus, it reaches the point of not having enough memory, thereby the server ceases to be available. https://ibb.co/RTMsT7x https://ibb.co/BnRvWvd https://ibb.co/yyChpSg https://ibb.co/bd8xVpt https://ibb.co/xj8q5zq https://ibb.co/myvf6QR

dollonov avatar Jun 28 '22 19:06 dollonov