• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Google automatic redirect

 
Ranch Hand
Posts: 338
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 266
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 1609
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Bartender
Posts: 2856
10
Firefox Browser Fedora Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 179
Mac Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 1609
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is it possible for us to view or know our IP address?
If yes how?
Regards.
 
Marshal
Posts: 79943
396
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Look at Satish Chilukuri's post and the link in that.
 
when your children are suffering from your punishment, tell your them it will help them write good poetry when they are older. Like this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic