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!
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
Firstly, you need to make sure you do all of the below:
server: port: 8082 address: 10.0.0.x
(or 192.xxx) something like this
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.