I am trying to run the example from the spring guide : Building a RESTful Web Service .
It works well if I open localhost:8080/greeting.
But it cann
Try adding this to java parameters: -Djava.net.preferIPv4Stack=true -Djava.net.preferIPv6Addresses=false
Run the query from curl: curl -vvv -X GET "http://192.168.1.111:8080/greeting"
If the 1. doesn't help, then most likely your firewall / proxy prevent the connection. Curl should give proper indication of that