Issue
I currently have a Java application running on port 8080 of my ubuntu machine.
And I am wondering if there is a way for me to send a post request to this server using Postman on another pc or mac.
Thank you in advance!
Solution
it depends on what host the applicaiton was started ,
if it was started in locahost (127.x.x.x) then it cant be accessed from other system.
If it was started by a specific ip (ip of your local system) eg 192.18.23.2 then all devices in that particular subnet can access the application using 192.18.23.2:port
if it was started using 0.0.0.0 internet address. Then devices in any network can access the application using IP address of your system for that particular subnet
NOTE: system will be exposed only if you have firewall settings set to do so else the above things wont work
Answered By - PDHide