Skip to content

Category: Blazor

What is my ip address?

Another “what is my ip address” app.

So far I have 2 apps for telling you your IP address.

One can be found here, https://yourip.sh. This is using GO and was forked from ifconfig.io. I wanted to learn GO so I forked that project and made modifications to it.

Such as…

  • Added MaxMind databases
  • Added dark mode
  • Added the ability to add other HTML elements
  • Added integration with plausible analytics

https://github.com/xavier-hernandez/yourip.sh

My other, older, app can be found here https://whatismyip.biz . This app is built in .NET, Blazor client side, running on a Linux server. This is totally custom built.

Both apps above a are docker images that I’ve created as well.

Leave a Comment

Getting error An unhandled exception has occurred. See browser dev tools for details.

I deleted all the CSS from site.css and replaced it with mine of course but after that, I started receiving the following error “Getting error An unhandled exception has occurred. See browser dev tools for details. Reload”. It looks like this occurs because blazor needs at least 2 styles to display errors.

Found my answer here.

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

Leave a Comment