E002 – Stop Hardcoding API URLs! cover art

E002 – Stop Hardcoding API URLs!

E002 – Stop Hardcoding API URLs!

Listen for free

View show details

This Season's Biggest Deal | $0.99/mo for 3 months + $20 Audible bonus

Auto-renews at $8.99/mo. after 3 months - terms apply.
Summary

Why does localhost work on your desktop but fail inside an Android emulator?

Hardcoded API addresses can quickly become frustrating when developing cross-platform applications.

In this episode of the TSJDEV Apps Podcast, Thomas Sebastian Jensen explores how Aspire's service discovery helps .NET MAUI applications communicate with ASP.NET Core backends.

Using the TaskBoard project, we'll look at logical service names, endpoint configuration, standalone fallback addresses, and some of the networking challenges developers encounter on mobile devices.

In this episode:

  • Why localhost behaves differently across environments.
  • How Aspire service discovery works.
  • Using logical service names instead of fixed ports.
  • Keeping mobile applications independently configurable.


Links & Resources

Episode Show Notes: https://www.tsjdev-apps-podcast.com/e002/

Original Article (English):

https://medium.com/medialesson/connecting-net-maui-and-asp-net-core-with-aspire-89c82577a19d

GitHub – TaskBoard:

https://github.com/tsjdev-apps/maui-aspire-taskboard

Coming Next: Creating a custom seven-segment display with SkiaSharp.

TSJDEV Apps Podcast – Short Episodes. Big Developer Ideas.

No reviews yet
In the spirit of reconciliation, Audible acknowledges the Traditional Custodians of country throughout Australia and their connections to land, sea and community. We pay our respect to their elders past and present and extend that respect to all Aboriginal and Torres Strait Islander peoples today.