Reputation: 77
I have a Java SpringBoot app running fine on localhost and it is accessible from any device connected to the same WI-FI. However, if I set server.address to my public IP address in application.properties and try to start my server, I get an error saying my 8080 port is in use. What could be the problem? I am using Windows 10.
Thank you!
Upvotes: 0
Views: 3603
Reputation: 11
Firstly, you need to make sure you do all of the below:
server: port: 8082 address: 10.0.0.x
(or 192.x.x.x) something like thisUpvotes: 1
Reputation: 64
To make your app accessible you don't need set server.address. Maybe if you use home router, you must try configure port forwarding for 8080 on router
Upvotes: 1