Thursday, 15 July 2010

java - RESTful web applications using WAN IP instead of localhost -



java - RESTful web applications using WAN IP instead of localhost -

i developing web application in java using restful web services , tomcat. far using localhost in uri: http://localhost:8080/3.serverapi/rest/variable. if want utilize real ip?

i have tried on local network replacing localhost lan ip , works fine: http://192.168.1.2:8080/3.serverapi/rest/variable application @ address received variable.

if want send through net long know have utilize wan ip: http://188.39.25.247:8080/3.serverapi/rest/variable

my question is, if utilize lastly uri wan ip need port forwards lan ip configuring router or going work when used lan ip ??

thanks in advance

it depends on network setup really.

you may have enable port forwarding on router direct request machine server on, create sure router allows connections port 8080.

i had when working callbacks on external apis. seem remember had enable port forwarding on router work. wasn't hard though, check router instructions on how - say, depends on network setup though.

hope helps.

java rest tomcat networking ip

No comments:

Post a Comment