Skip to content

SYN Mirror of now: passwords of 16, a port asked with an id, fixed ports, a meeting point whose address changes - #1

Closed
cheblin wants to merge 40 commits into
mainfrom
syn-mirror-16
Closed

cheblin wants to merge 40 commits into
mainfrom
syn-mirror-16

Conversation

@cheblin

@cheblin cheblin commented Nov 18, 2026

Copy link
Copy Markdown
Member

rdp-host --meet speaks the SYN Mirror of now ( AdHoc-Protocol/SynMirror#1 ):

  • --meet takes the line whole, as the meeting point makes it: password@point:40000, key=point:41000 ( a fixed port ), or either with the address read where its record is kept: password@read key@S:40000,…
  • the password, the keys: 16 letters and digits
  • a port asked for with the password and an id of 8 random bytes; the knock carries both, 24 bytes. A fixed port: its key alone, nothing asked
  • a meeting point whose address changes: read at its keepers, the freshest, again each 30 s; moved - the same id, the same source port there
  • the restart as administrator keeps its port ( --meet-given )
  • Android: the field of 16, a line split at @ or =

The form of the lines is SynMirror's: host/src/lines.tsv is a copy of docs/lines.tsv there, and the_lines_of_syn_mirror takes each case as the file says - as both scripts of the server and a DeFreez host do.

Checked: cargo test --release --lib on Windows, all passed; in Docker against SynMirror of the branch - @ and = at a fixed address, = read at S, @ read at two S with the meeting point moved .2 → .5: the same port, the client met. Not checked: the Android build ( no SDK here ), the restart as administrator live.

🤖 Generated with Claude Code

The login form is now a scene: this computer, the remote one, their routers,
and what is between them - one house for one network, the cloud of the
internet, a meeting point in it. The four ways are chosen by the number
pressed in rdp-host; each shows only its own fields, on the paths of what
goes by chat or mail, and Connect is pressable only when all is there.

The scene shows the moment: waited for, on its way, alive with pulses both
ways, or broken - pale and still where it broke, with what to check beside
it. On way 4 the STUN servers answer on it, the line flies there as a paper
plane, the answer comes back in an envelope. The log of each step opens
under it.

npm run pictures draws the scene in a few moments into docs/page-*.svg, from
the code of the page itself: the README shows them, moving by themselves.
The program prints one line for the way chosen, all the page needs in it:
the address, the port and, after #, the token. No ws://, no separate token
or "listening on" lines.

The page has one field for it: the line is pasted as it came and stays so;
the page takes it apart only to dial, and adds ws:// itself. A line with
ws:// still goes; a line without a port dials 8765; one without # and the
token is not taken. The field of the token is gone.

README, the pictures of docs and the pictures of the page follow.
Every connection the scene draws goes through the cloud of the internet: on
ways 2 and 4 the line crosses it, the pings of the STUN servers go up through
it, and on way 3 the meeting point stands above it, the line going up to it
through the cloud and down again.

The empty field shows what the line of the way looks like:
192.168.1.20:8765#K7QM…, router.example.org:41933#K7QM…, rd1a.…
overview, connect and viewers are drawn now by npm run pictures, in the hand
and with the drawings of the page: the laptop and the remote computer alive
through the cloud of the internet; the four steps of Connect lit one after
another; three viewers, the one who controls with pulses both ways.

choose, ways, meet and direct are gone: the table of the ways and the
pictures of the page say it.
No Connect button: a line pasted into its field connects at once; a line
typed by hand at Enter. The optional name sits beside "You", over the
laptop; the field of the line takes the whole width of its path.

README says so; its pictures are drawn again: the first one shows the line
pasted and the page connecting.
The scene and its pictures are written in Coming Soon now ( Apache License
2.0 ): printed letters by hand, easier to read than the script of Caveat;
the sizes of the hand fitted to it.

"You" and the field of the name are one block, centred on one line over the
laptop at any width of the window; the name is typed in 16 px.
The line carries a check of the key of the remote computer after its token:
address:port#TOKEN-CHECK, 8 characters, the first 40 bits of the SHA-256 of
its key. The page checks the key the computer proves against it in the
handshake, before the token goes: another computer at that address gets no
token, and the page says it is not the computer of the line. Nothing to
compare by hand; the key line of the program is gone.

The window of the program: a banner in colour, the menu answered by the key
pressed alone, the line to send in a frame and in the clipboard, who comes
and goes with its sign and colour. What nobody needs is gone: the port, the
key, the counts of the STUN servers, how the router opened its port, the
report of frames every 5 seconds.
A panel portrait by nature, the desktop landscape at 270: the program turned
the frame by 90 and showed it upside down. The video processor and the
copy for the CPU turn the texture by the rotation of the mode itself now.

The page read the clipboard at each click and focus: a page opened from a
file was asked each time. Ctrl ( ⌘ ) + V and Shift + Insert are left to the
browser now: the text of its paste goes to the machine, then the key held
back till then. Read ahead only where the browser allows it already.
The encoder of Windows on the processor takes low latency only when tuned
before its types are set: else it held 16 frames before the first, and a
desktop that changes little stayed black. A screen larger than 4096 pixels
a side is halved as it is converted, each pixel the average of 2 x 2.

The page has View: whole / 1:1. 1:1: a pixel of the frames is a pixel of
the device, the text as large as on the machine; the pointer or a finger at
an edge moves the view, as the viewers of phones do. Kept for the next time.
The desks are panels of dockview: a tab dragged to an edge splits the screen, ▣ floats a group over the others, ⧉ takes a computer into a browser window of its own and brings it back when the window closes. The screen, the keys and the clipboard follow the window the desk is in. Two fingers zoom the view, as AnyDesk does.
The host is a library now: the program of a computer calls it, and the app of a phone (android/) loads it. On Android the screen goes from MediaProjection into the hardware encoder of the phone, the sound of the apps goes with it, and text crosses both ways: Ctrl+V of the page sets the clipboard of the phone, and text selected, shared or copied on the phone goes to the computer. The workflow builds the APK into the release.
Any viewer draws over the screen of the machine with ✏️: a line, a ring where it taps, an arrow, in four colours. Each holds a moment and fades by itself; the mouse and the touches go through it. The pack Viewer.Mark is added to the protocol. The host draws each stroke into an image of its own frame and shows it over everything: a layered window on Windows, a window of the screen saver level on macOS, a window of 32 bits on X11 with a compositor, a window over the other apps on Android. Wayland lets no program draw over the others: the host says so.
The service of accessibility of the app makes the input of the page: the fingers and the mouse as strokes followed while they move, Back, Home and Recents, the wheel as a swipe, the keys of editing and text typed into the field in focus, Ctrl with A, C, X, V as the actions of the field - Ctrl+V of the page pastes on the phone. The machine tells the page it is a phone (Welcome.phone): the page shows the buttons of the phone and sends the characters typed as text.
The workflow takes the key from the secrets of the repository: every APK of the releases installs over the one before. Without them - a fork, a build here - the key of debugging signs it, and the workflow warns.
…le shown

The guide tells what the phone asks for and where each permission is, with pictures of a Xiaomi, the places by the maker and the words to search Settings for; the app searches the web for how to do it on that phone. While the screen is shown it stays on: Android stops showing it when the phone locks, and a notification says so when it stops. The app shows the line at once after the consent, the marks are as large to the eye on a dense screen, a phone has no button of the rights of an administrator.
Audience carries no_input: a phone whose user has not turned the control on yet. The app tells the host when the service of accessibility turns on or off, and the host tells every viewer at once; the bar of the page says so until it is on.
…hone

The clipboard carries pictures as PNG, up to 16 MiB, both ways and on every system: Windows as PNG and CF_DIB, Linux and macOS through arboard, a phone through a provider of its own; the page pastes and copies them. On a phone the microphone of the page plays on the speaker, Get a file shows the picker of Android, and Ctrl+C or Ctrl+X of the page sends what the phone copied to the computer.
The bar lies over the top of the screen: its handle pulls it up and down, or a press does. Icons in groups, their words in the hints; what is set once in a while - the numbers, the display, Fit, the frames, the pointer, the rights - in the menu of ⋯, and on a narrow screen the files and the full screen too. The viewer that comes in controls at once; the one that controlled watches and takes it back with a press.
… plain

The README tells first what RemoteDesk does, then three quick starts - a computer, a phone, from a phone - the ways, the session, a part of its own for Android, and what goes wrong and the limits by kind. The app shows the ways as tiles and one button; while the screen is shown, how it goes, the line with Copy and Share, its words folded under Details; what is not allowed yet in one card, by what the settings say, gone once all is.
The program starts DTLS and SCTP when ICE meets, not when it prints the answer: the handshake has 40 seconds,
and the answer may take minutes by hand.

At its start the program tests its router with STUN servers that answer from another address of theirs
(RFC 5780) and says whether it lets in only what it asked for; the answer carries that in a byte of flags.
The page says when it makes its line that its network gives a new port for each address, and once the
answer comes, that the two will not meet. When the meeting fails, the page tells the checks sent to each
address of the remote computer and why.
A network that gives a new port for each address shows in the warning colour all over: the step of the line,
its arrow, the router, the scene and the status, not green beside a red log. An answer saying the router there
lets in only what it asked for turns them red. The field of the answer shows once the line is made, and is shut
while the two cannot meet. A STUN server that did not answer in time is told once.
…ge of SYN Mirror copies it

The window takes Tr7kQ2xZ@router.example.org where it asks for the meeting point, and asks no password then; the point is kept
without it. --meet takes the same line, --meet-password stays for a point without a password. On the phone, the line pasted into
the field of the meeting point moves its password into its own field.
…xample.org:40000 in the examples, the hint and the README
A line sent through a messenger came with marks no one sees around the address, or with words of the message: the page took only
the line, bare, and said it was not one. splitLine finds <address>:<port>#<token> in the text as it came now: the marks of format
( \p{Cf} ) dropped, a non-breaking space a space, the words and a frame of the console around left aside.
WeChat takes # for a tag and copies the line cut: the page got a piece of it, and said it was not a line. rdp-host prints / on
every way now; the page takes / and the # of a program of before. It finds the line in the text as it came - NFKC makes the #
and : of full width plain, the marks of format are dropped - and, when there is no line, names the characters that are not of
one. The examples, the hints, the README and the pictures say / too.
cheblin and others added 10 commits November 14, 2026 21:07
… as a viewer left

The encoder of NVIDIA ( nvEncMFTH264x.dll ) works on a frame in a work queue of Media Foundation, apart from its calls. A viewer
left, and the encoder was flushed and shut down with a frame in it: its work item ran after, entered the critical section it had
freed, and the program fell - an access violation in ntdll, at 0x18. It came every 5 to 10 sessions on the phone, closed by a
reload of the page.

Drop ends it as Media Foundation tells an asynchronous MFT to end: the end of the stream and a drain, its outputs taken and
dropped till METransformDrainComplete, a second at most; then the callback lets the encoder go and waits for the call of it that
runs on a work queue, so that no event is asked of an encoder shut down; and only then the shutdown. 20 sessions in a row, each
closed by a reload, did not fall.
… fingers move the view; the sound off at first

- The keyboard on the screen came up at each touch: a touch focuses the field of the keys. The field is inputmode none on a
  touch screen now - the keys of a keyboard of the device still come - and ⌨ in the bar shows or hides the one on the screen; a
  touch keeps it as it is. The button takes no focus: touched, it made the keyboard start to close, and open again.
- A tap, then at once a hold at the same place: the right button there, the menu of what the tap chose. A long press of a finger
  is not the right button for every system nor app. A double tap stays a double tap, a tap and a drag a drag.
- Two fingers on a view zoomed or at 1:1 are the view's at once: moved together they move it, apart or together - once by more
  than a shake - they zoom it. Before, they moved it only within a pinch. The whole screen in view: they scroll there, as before.
- The sound of the machine is off as a viewer comes in, as the microphone: rdp-host starts it only when the viewer turns it on,
  and the page tells a machine of before it is off.
…pped above it

The keyboard on the screen covered the field typed into when it was low on the screen. The desktop is lifted now, as large as
it was, so that the place touched last - the field tapped before ⌨ - is above the keyboard, a margin over it; it follows the
keyboard as it slides in, and goes back down as it closes. The bar stays; what goes up is hidden under it, the area of the
desktop clips. The Back of a phone closing the keyboard is told by the height of the page without it, kept.
… its port given to an id; the meeting point as a relay

- rdp-host prints the QR code of the line under it; the page reads it - 📷 Scan: the camera on the page, or a photo by the camera app where the page has none, as from the Downloads of a phone - and keeps the computers by a name: a press connects, 📷 Update gives one its new line, Copy and Send take it to another device
- Way 3: no Enter, the program waits at once; it asks and knocks with an id of 8 random bytes, as SYN Mirror gives the port to it now; the Android app has no button for it any more
- Way 3 as a relay: 3, then Remote Desktop of Windows or a port typed, or --forward: the meeting point joined to that server, the bytes as they are
- Where it waits: keep the computer awake; for Remote Desktop: a long password, guessing is sure
- README: all of it; the scripts of SYN Mirror for a relay alone, without RemoteDesk
…nd the calls, in the window and rdp-host-crash.log; an LSP of Winsock named as such - Astrill VPN, and how to remove its LSP
…rt asked with an id, fixed ports, a meeting point whose address changes

--meet takes the line of the meeting point whole, as SYN Mirror makes it: password@point:40000,
key=point:41000 for a fixed port, or either with the address read where its record is kept -
password@read key@S:40000,... The machine asks for a port with the password and its id, knocks with
both; a fixed port is knocked at by its key alone. The address of a meeting point that moved is read
again each 30 s, and the machine waits there with the same id, from the same source port. The cases
of host/src/lines.tsv - a copy of docs/lines.tsv of SynMirror - are what its test takes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…for all - docs/lines.tsv of SYN Mirror, its copy in host/src

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@cheblin cheblin closed this Nov 18, 2026
@cheblin
cheblin deleted the syn-mirror-16 branch November 18, 2026 19:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant