Login URL redirects to private ip

84 views
Skip to first unread message

Ángel Soliño Freire

unread,
May 13, 2013, 1:54:57 PM5/13/13
to appscale_...@googlegroups.com
Hi,

I've a Java Aplication running on an AppScale 1.6.9 VirtualBox Image. The host machine has a public ip, and I've setted port forwarding so any request to public-ip:8080, gets redirected to the guest vm at private-ip:8080. The problem comes when the user who makes the request is not logged in, so UserService.createLoginURL() gets called. The returned URL is a private ip, so is innaccesible from "outside". Any clue on how to solve this? Maybe trying to hardcode the public-ip into the AppServer (/root/appscale/AppServer/google/appengine/api/user/user_service_pb.py) ?

Thanks.

Navraj Chohan

unread,
May 13, 2013, 2:20:49 PM5/13/13
to appscale_...@googlegroups.com
Hi Angel,
For the Java server look in /root/appscale/AppServer_Java/. We've made an issue to address this for our 1.7.1 release (https://trello.com/card/when-port-forwarding-is-enabled-the-users-api-returns-the-private-ip-location-rather-than-the-public-one-for-the-java-app-server/515f17ce976f70e80e0049db/430) where you can follow it. In the meantime you can hardcode the address in /root/appscale/AppServer_Java/src/com/google/appengine/api/users/dev/LocalUserService.java and then build the AppServer by running "ant" in /root/appscale/AppServer_Java/. Let us know if you run into issues.

We're available to chat at freenode.net #appscale. 

Thanks
-Raj 




--
You received this message because you are subscribed to the Google Groups "AppScale Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to appscale_commun...@googlegroups.com.
To post to this group, send email to appscale_...@googlegroups.com.
Visit this group at http://groups.google.com/group/appscale_community?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Navraj Chohan (Raj)
Co-Founder of AppScale Systems

615 State Street

Santa Barbara, CA 93101

r...@appscale.com


Come meet the AppScale team at Google I/O
Now a Google Cloud Partner

Chris Bunch

unread,
Jul 11, 2013, 12:29:11 PM7/11/13
to appscale_community
Hi Angel,
   Another thing you can do is use the --login_host flag (or the login_host parameter in your AppScalefile), and point that at the public IP address of your machine. That then will tell the Java AppServer where login requests should be forwarded to.
Reply all
Reply to author
Forward
0 new messages