The title is self-explanatory, I can access the swagger UI from the server which I installed it, but could not access it when I'm requesting the URL from another pc in the same network (domain ). I am not using localhost, I tested it with the server name and the IP with no success. The firewall on the server is off but to be sure I added required rules to allow the swagger port to be accessed without interference.

1 Answers

0
Abhijit On

Add context path in your application.properties.

server.servlet.context-path=/rootpath

And try to access swagger with this context.

http://<ip>:8080/rootpath/swagger-ui.html