0

I can't connect remotely to my SB app that I want to self-host

Introduction

I made a Spring Boot app with a 'my-sql' container that I want to share outside my home network to test it with some friends. The app works locally but I want to use it outside my network.

I have never, ever, deployed an app and I have little knowledge on this matter and I want to do it properly to avoid problems that I won't be able to handle myself.

What have I done so far

  • I tried opening the 8080 port on the firewall for any connection
  • I added my public ip in the application.properties with port 8080
  • Used 0.0.0.0 to listen to any connection to 8080 as in this solution
  • Load the app to Heroku (success) and self-host the 'my-sql' (that one is another question)

Problem

None of these solutions above worked for me

Stephen C
  • 698,415
  • 94
  • 811
  • 1,216
Jonalcaide
  • 560
  • 8
  • 21
  • What you are doing won't work because your network router still needs to figure out where to send incoming requests. Opening a port won't "just work". Check this article out: https://hackaday.com/2022/03/15/run-your-own-server-for-fun-and-zero-profit/ Is not spring boot but it may point you in the right direction. – Onema Aug 16 '23 at 23:06

1 Answers1

0

This is a network-related question. You will need to set up a few things first:

  • Get a static IP provided by your Internet Service Provider (ISP)
  • You need to configure your network gateway to forward requests to the server hosting your application
Onema
  • 7,331
  • 12
  • 66
  • 102
Ja'afar Naddaf
  • 357
  • 4
  • 13