You do not add port number anywhere - if your browser is not resolving
localhost or $HOSTNAME.local (echo $HOSTNAME) just use its IP and the
correct port.

-T

On Thu, Jan 9, 2025, 15:18 Rich Shepard <[email protected]> wrote:

> On Thu, 9 Jan 2025, Russell Senior wrote:
>
> > Try:
> >  netstat -tan | grep LISTEN
>
> $ netstat -tan | grep LISTEN
> tcp        0      0 127.0.0.1:8118          0.0.0.0:*
>  LISTEN
> tcp        0      0 0.0.0.0:631             0.0.0.0:*
>  LISTEN
> tcp        0      0 127.0.0.1:5432          0.0.0.0:*
>  LISTEN
> tcp        0      0 0.0.0.0:25              0.0.0.0:*
>  LISTEN
> tcp        0      0 127.0.0.1:2812          0.0.0.0:*
>  LISTEN
> tcp        0      0 0.0.0.0:37              0.0.0.0:*
>  LISTEN
> tcp        0      0 0.0.0.0:14982           0.0.0.0:*
>  LISTEN
> tcp        0      0 127.0.0.1:783           0.0.0.0:*
>  LISTEN
> tcp        0      0 0.0.0.0:80              0.0.0.0:*
>  LISTEN
> tcp        0      0 0.0.0.0:113             0.0.0.0:*
>  LISTEN
> tcp6       0      0 :::631                  :::*                    LISTEN
> tcp6       0      0 :::14982                :::*                    LISTEN
> tcp6       0      0 ::1:783                 :::*                    LISTEN
>
> > If you see the ports you expect, then start to consider whether
> > localhost is resolving. The usual place for that to happen is in
> > /etc/hosts. On my system, I see something like this in /etc/hosts:
> >  127.0.0.1       localhost.localdomain   localhost
>
> 127.0.0.1       localhost.localdomain   localhost
>
> How do I add 127.0.0.1:1313? That's where Hugo lets me see my local
> website.
>
> Thanks, Russell,
>
> Rich
>

Reply via email to