How can I disable "load balancing" function in google app engine

113 views
Skip to first unread message

石奇偲

unread,
Apr 15, 2012, 4:59:03 AM4/15/12
to google-a...@googlegroups.com
I find that even when I request a same url(using HttpURLConnection class in java) in a short time by google app engine, my google app engine's ip is not the same.
It doesn't matter in most times,but my app simulates a logging user to a third-party web.I use cookie to maintain the log-in status of the third web.But when my IP is changing ,the cookies are not work again .

The app runs well when I debug from local,because my local ip don't change.
So,is there any mathod that fixed the IP address google app engine used?

Jeff Schnitzer

unread,
Apr 15, 2012, 7:43:35 PM4/15/12
to google-a...@googlegroups.com
You are either misunderstanding or misdescribing the problem.
Browsers scope cookies by domain name. IP address is irrelevant.

Jeff

> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-appengine/-/29GHxd9f_cUJ.
> To post to this group, send email to google-a...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengi...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-appengine?hl=en.

Brian Quinlan

unread,
Apr 15, 2012, 7:45:54 PM4/15/12
to google-a...@googlegroups.com
Hi,

No, using a fixed IP for urlfetch is not supported. But I'm not sure
why a changing IP address would cause problems with cookies.

Cheers,
Brian

Barry Hunter

unread,
Apr 15, 2012, 7:53:15 PM4/15/12
to google-a...@googlegroups.com
On Mon, Apr 16, 2012 at 12:45 AM, Brian Quinlan <bqui...@google.com> wrote:
> Hi,

> No, using a fixed IP for urlfetch is not supported. But I'm not sure
> why a changing IP address would cause problems with cookies.

I doubt its the cookie as such. It will be the remote site, rather
foolhardily tying "session" to the clients IP.

If they see the client IP change, they invalidate the session. I guess
trying to protect against session fixation - but its a bad way to do
it, because lots of clients change IP address. Who remembers AOL
proxing all users?

I've faced this problem before, it took lots of badgering the
webmaster to 'fix' their website.


(Pretty much off-topic, but Google translate has this issue :)

石奇偲

unread,
May 4, 2012, 3:13:58 AM5/4/12
to google-a...@googlegroups.com
Yes,I think you are right.
Is there any api that can keep connecting,when I access several urls so that the ip address will not change?

I find HttpURLConnection can keep connecting while access one url for several times with different data to be post.But I can't change the target url.When I want do that,I must have a new HttpURLConnection ,so the connecting will lose.

2012/4/16 Barry Hunter <barryb...@gmail.com>
--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
Reply all
Reply to author
Forward
0 new messages