简体   繁体   中英

Connection timed out with REST service

My RoR project is running on EC2 server that call REST service of my windows localhost lets say project is running on "localhost:8080/project/login" and I have mentioned URI under Rest Controller in my ROR project as "base-uri = http:xxx.xxx.xxx.xx:8080/project/rest/getUsername".

But whenever I am trying to hit that request from my ROR project it is giving me Connection time out error while when I hit same request on browser it gives me result.

您无法连接到本地主机,所有操作都必须通过远程服务器完成。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM