mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #4730] When forwarding usbipd traffic, the forwarded device can be detected, but the transmitted content appears to be garbled. #3733
Labels
No labels
In Progress
WIP
WaitingForInfo
bug
doc
duplicate
easy
enhancement
future
help wanted
invalid
lifecycle/stale
need-issue-template
need-usage-help
no plan
proposal
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/frp#3733
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @zart2007 on GitHub (Mar 26, 2025).
Original GitHub issue: https://github.com/fatedier/frp/issues/4730
Bug Description
When using frpc to forward the usbipd service running on Windows, garbled characters occur during serial port communication.
I am preparing to use Arduino to create a cloud-based development environment. I use usbipd to directly forward the port to the cloud for burning, serial port communication, and other operations.
Currently, I have tested with two hosts within the local area network. When frp forwarding is not used, everything works fine. However, when using frp to forward the usbipd service, it is impossible to burn the program, and garbled characters also appear during serial port communication.
In principle, there should be no problem with frp forwarding usbip. I suspect that the data after frp forwarding is somewhat different from the original data.
The USB/IP protocol is a network-based USB device sharing mechanism that allows a USB device to be shared from one host to another over a TCP/IP network. The following is a detailed description of the USB/IP protocol.
USB/IP encapsulates the USB protocol into TCP/IP packets and transmits them over the network. Specifically:
Server-side (Server)
Client-side (Client)
frpc Version
0.61.2
frps Version
0.61.1
System Architecture
linux/amd64
Configurations
frps.toml
bindAddr = "0.0.0.0"
bindPort = 7000
auth.method = ""
auth.token = ""
frpc.toml
serverAddr = ""
serverPort = 7000
auth.method = ""
auth.token = ""
proxies
name = "usbip"
type = "tcp"
localIP = "127.0.0.1"
localPort = 3240
remotePort = 3240
Logs
There is no error message.
The running log is as follows.
D:\frp\frp_0.61.2_windows_amd64\frp_0.61.2_windows_amd64>frpc.exe -c frpc.toml
2025-03-26 18:03:16.917 [I] [sub/root.go:142] start frpc service for config file [frpc.toml]
2025-03-26 18:03:16.932 [I] [client/service.go:295] try to connect to server...
2025-03-26 18:03:17.030 [I] [client/service.go:287] [cb3a817a5b172b0c] login to server success, get run id [cb3a817a5b172b0c]
2025-03-26 18:03:17.031 [I] [proxy/proxy_manager.go:173] [cb3a817a5b172b0c] proxy added: [usbip]
2025-03-26 18:03:17.061 [I] [client/control.go:168] [cb3a817a5b172b0c] [usbip] start proxy success
Steps to reproduce
...
Affected area
@fatedier commented on GitHub (Mar 26, 2025):
This looks like an application-layer issue, and I’m unable to provide effective help.
@github-actions[bot] commented on GitHub (Apr 10, 2025):
Issues go stale after 14d of inactivity. Stale issues rot after an additional 3d of inactivity and eventually close.