Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Google automatic redirect

 
ramya narayanan
Ranch Hand
Posts: 338
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Whenever I type www.google.com, the site is getting automatically redirected to www.google.co.in , what is the functionality behind this automatic redirecting?
How google is doing this?
Any idea!
Any help is appreciated.
Regards.
 
Maneesh Godbole
Saloon Keeper
Posts: 11070
13
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It would seem google takes the IP of the requester and redirects to appropriate server.
 
ramya narayanan
Ranch Hand
Posts: 338
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1)Is it possible to identify the country name from the IP address?
2)The IP address is that
My machine's IP address or internet dynamic IP address?
3)If it's dynamic IP address, then for each page I open in different sites, does each webserver give it's own IP address.
Suppose if i open 10 sites, then does it mean that i'll have 10 different IP addresses?
Regards.
 
Satish Chilukuri
Ranch Hand
Posts: 266
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by ramya narayanan:
1)Is it possible to identify the country name from the IP address?


Yes, you can lookup the location based on your IP.

2)The IP address is that
My machine's IP address or internet dynamic IP address?

If you are directly connecting to the Internet, your machine IP will be a public IP. But if your company uses a router and your machine is part of a NAT subnet, it will have a private IP with the router having the public IP.

3)If it's dynamic IP address, then for each page I open in different sites, does each webserver give it's own IP address.
Suppose if i open 10 sites, then does it mean that i'll have 10 different IP addresses?

Your machine will be assigned an IP address at the time it starts up (more specifically when networking module starts up). After that the IP doesn't change unless you restart networking.
 
Akhilesh Trivedi
Ranch Hand
Posts: 1603
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, if you are in office, you have an ip address. your lan-server provides you that ip. similarly if you are on internet it is your internet-connection-provider that provides you an ip.

We simply believe the fact that internet-service-provider is located at some place or region and that you should also be from that region or around. You can create database to store all such ip-to-region mappings. That is what the link by satish should be doing behind the scenes.
 
Amit Ghorpade
Bartender
Posts: 2854
10
Fedora Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In this particular scenario I dont think Google (or any other site) will need the originating IP address. Maybe the address of the last router will suffice. But yes the client IP is the best way to know where the request comes from.
 
Ravikanth kolli
Ranch Hand
Posts: 179
Chrome Eclipse IDE Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
google do redirect the request based on the ISPs ip address.

This article would be helpful.
 
Akhilesh Trivedi
Ranch Hand
Posts: 1603
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Ravikanth kolli:
google do redirect the request based on the ISPs ip address.

This article would be helpful.


On google homepage it is on Bottom-Right and on the article page it is botttom-left (part of copyright). ;-)
 
ramya narayanan
Ranch Hand
Posts: 338
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it possible for us to view or know our IP address?
If yes how?
Regards.
 
Campbell Ritchie
Sheriff
Pie
Posts: 49405
62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Look at Satish Chilukuri's post and the link in that.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic