Skip to content

Commit 07161ba

Browse files
committed
chore: change default websockify port from 4534 to 4540
Avoids collision with SatDump and other satellite software that defaults to the hamlib rotctld port range (4532–4534).
1 parent e5bace2 commit 07161ba

4 files changed

Lines changed: 11 additions & 11 deletions

File tree

CONTRIBUTING.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ The project includes a WebSocket rotator simulator that speaks rotctld protocol
4646
```bash
4747
npm run rotator-sim
4848
# or with a custom port:
49-
node scripts/rotator-sim.mjs 4534
49+
node scripts/rotator-sim.mjs 4540
5050
```
5151

52-
Connect in the app: Setup tab → Network mode → `ws://localhost:4534` (or `4533` for default).
52+
Connect in the app: Setup tab → Network mode → `ws://localhost:4540` (or `4533` for default).
5353

5454
### rotctld dummy rotator
5555

@@ -60,9 +60,9 @@ Use Hamlib's `rotctld` with the dummy backend for a more realistic test (support
6060
rotctld -m 1 -vvvvv -t 1234 -C min_el=5
6161

6262
# Terminal 2: bridge WebSocket to TCP (pick one)
63-
websocat --binary ws-l:127.0.0.1:4534 tcp:127.0.0.1:1234
63+
websocat --binary ws-l:127.0.0.1:4540 tcp:127.0.0.1:1234
6464
# or
65-
websockify 4534 localhost:1234
65+
websockify 4540 localhost:1234
6666
```
6767

6868
Install a bridge if needed:
@@ -72,7 +72,7 @@ cargo install websocat # single Rust binary
7272
pip install websockify # Python
7373
```
7474

75-
Connect in the app: Setup tab → Network mode → `ws://localhost:4534`.
75+
Connect in the app: Setup tab → Network mode → `ws://localhost:4540`.
7676

7777
Verify rotctld is responding:
7878
```bash
@@ -86,7 +86,7 @@ SSH port-forward rotctld from a remote host, then bridge locally:
8686

8787
```bash
8888
ssh user@rotator-host -L 4533:localhost:4533 -N &
89-
websocat --binary ws-l:127.0.0.1:4534 tcp:127.0.0.1:4533
89+
websocat --binary ws-l:127.0.0.1:4540 tcp:127.0.0.1:4533
9090
```
9191

9292
## Desktop Builds (Tauri)

src/rotator/rotctld.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export class RotctldDriver implements RotatorDriver {
2727
}
2828

2929
async connect(options: RotatorConnectOptions): Promise<void> {
30-
const url = options.wsUrl ?? 'ws://localhost:4534';
30+
const url = options.wsUrl ?? 'ws://localhost:4540';
3131
return new Promise<void>((resolve, reject) => {
3232
const ws = new WebSocket(url, ['binary']);
3333
ws.binaryType = 'arraybuffer';

src/stores/rotator.svelte.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class RotatorStore {
4242
mode = $state<RotatorMode>('serial');
4343
serialProtocol = $state<SerialProtocol>('gs232');
4444
baudRate = $state(9600);
45-
wsUrl = $state('ws://localhost:4534');
45+
wsUrl = $state('ws://localhost:4540');
4646
updateIntervalMs = $state(2000);
4747
tolerance = $state(3.0);
4848
parkPreset = $state<ParkPreset>('north');

src/ui/RotatorWindow.svelte

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1056,10 +1056,10 @@
10561056
<code>cargo install websocat</code>
10571057
</li>
10581058
<li>Run the bridge:<br>
1059-
<code>websockify 4534 localhost:4533</code><br>
1060-
<code>websocat --binary ws-l:0.0.0.0:4534 tcp:127.0.0.1:4533</code>
1059+
<code>websockify 4540 localhost:4533</code><br>
1060+
<code>websocat --binary ws-l:0.0.0.0:4540 tcp:127.0.0.1:4533</code>
10611061
</li>
1062-
<li>Enter <code>ws://localhost:4534</code> as the URL above</li>
1062+
<li>Enter <code>ws://localhost:4540</code> as the URL above</li>
10631063
<li>Switch to the Radar tab and click Connect</li>
10641064
</ol>
10651065
{/if}

0 commit comments

Comments
 (0)