[GH-ISSUE #34] Connect openvpn via cloak plugin on random port #28

Open
opened 2026-02-26 12:35:15 +03:00 by kerem · 2 comments
Owner

Originally created by @alexander-potemkin on GitHub (Aug 25, 2023).
Original GitHub issue: https://github.com/cbeuw/Cloak-android/issues/34

Thank you for the beautiful software!

I'm trying to repeat my desktop setup on Android and I struggle to understand how it works as a plugin to shadowsocks.

From what I see via logcat, once started, cloak as a plugin every time opens a different port for openvpn client:

time="2023-08-25T09:03:00Z" level=info msg="Listening on TCP 127.0.0.1:42101 for openvpn client"
<...>
time="2023-08-25T09:31:49Z" level=info msg="Listening on TCP 127.0.0.1:42571 for openvpn client

I can't see any way to have this fixed in the UI, nor have I found a way to get into the configs directly.

Any help would be much appreciated!

Originally created by @alexander-potemkin on GitHub (Aug 25, 2023). Original GitHub issue: https://github.com/cbeuw/Cloak-android/issues/34 Thank you for the beautiful software! I'm trying to repeat my desktop setup on Android and I struggle to understand how it works as a plugin to shadowsocks. From what I see via logcat, once started, cloak as a plugin every time opens a different port for openvpn client: ``` time="2023-08-25T09:03:00Z" level=info msg="Listening on TCP 127.0.0.1:42101 for openvpn client" <...> time="2023-08-25T09:31:49Z" level=info msg="Listening on TCP 127.0.0.1:42571 for openvpn client ``` I can't see any way to have this fixed in the UI, nor have I found a way to get into the configs directly. Any help would be much appreciated!
Author
Owner

@ruschecker commented on GitHub (Feb 25, 2024):

Hello.
Faced with the same issue. Found it the same way =)
According to explanations https://github.com/shadowsocks/shadowsocks-libev/issues/2760
It should forward from socks5 proxy to that port, but It won't work for me. Trying to find workaround.

<!-- gh-comment-id:1963053865 --> @ruschecker commented on GitHub (Feb 25, 2024): Hello. Faced with the same issue. Found it the same way =) According to explanations https://github.com/shadowsocks/shadowsocks-libev/issues/2760 It should forward from socks5 proxy to that port, but It won't work for me. Trying to find workaround.
Author
Owner

@Elpersonn commented on GitHub (May 3, 2024):

So then how is anyone supposed to use this without adb to find out the correct port?

<!-- gh-comment-id:2093876768 --> @Elpersonn commented on GitHub (May 3, 2024): So then how is anyone supposed to use this without adb to find out the correct port?
Sign in to join this conversation.
No labels
pull-request
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
starred/Cloak-android#28
No description provided.