I also thought about the firewall first. However, the problem is when my endpoints are:
From the tutorial, I had a code similar to the following
String[] endpoints = new String[] { "http://localhost:8080/do_something/",
This code only works locally, and only if you use localhost. To be able to use IP, I changed it to
String[] endpoints = new String[] { "http://127.0.0.1:8080/do_something/",
This time the request by ip-address worked, but the server did not respond to remote requests from another ip. What made me work for me was to use the star (*) instead of localhost and 127.0.0.1, so the following code:
String[] endpoints = new String[] { "http://*:8080/do_something/",
Just leaving it here if someone stumbles upon this post like me.
source share