admin/internet: clearer message

Massimo Melina committed May 1, 2026 at 00:56 UTC becfb65847852ef64fc1eab8088a62d6485178a7
1 file changed +4 -1
admin/src/InternetPage.ts
+4 -1
@@ -420,7 +420,10 @@ export default function InternetPage({ setTitleSide }: PageProps) {
420 && fixPort()
421 if (!data.upnp)
422 return alertDialog(h(Box, { sx: { lineHeight: 1.5 } }, md(`We cannot help you configuring your router because UPnP is not available.\nFind more help [on this website](${PORT_FORWARD_URL}).`)), 'info')
423 - const res = await promptDialog(md(`This will ask the router to map your port, so that it can be reached from the Internet.\nYou can set the same number of the local network (${port}), or a different one.`), {
423 + const msg = `For HFS to work over the Internet, you need a port on your modem/router forwarded to this computer's port ${port}.\n\n`
424 + + (data?.mapped ? '' : `You may want to check if that's already the case before trying the following.\n\n`)
425 + + `This will ask the router to forward a port.\nYou can use the same number as the local network port (${port}), or a different one.`
426 + const res = await promptDialog(md(msg), {
427 value: data.externalPort || port,
428 field: { label: "Port seen from the Internet", comp: NumberField },
429 addToBar: data.mapped && [h(Button, { color: 'warning', onClick: remove }, "Remove")],