server - Why is a website assigned the same ip address each time? -


  1. why website assigned same ip address each time?
  2. discuss suitable example whether server can assigned 2 different ip addresses.

would appreciate in these 2 questions. thanks

question #1:

short answer: websites assigned same ip address web clients send requests proper system.

long answer: web clients connect servers using ip addresses directly. instead, clients use domain names www.google.com. dns software maps name address.

thus changing web server address should easy - change name mapping. performance reasons, name mappings cached. if mapping changed, caches have old mapping period of time (called time live, or ttl). changing web server address isn't trivial.

question #2:

there number of circumstances server can have more 1 ip address:

  • the server hosting multiple vms. each vm has own ip address.
  • the server hosting websites multiple companies. each website has own ip address.
  • the server doing routing between 2 subnets. have separate ip addresses each subnet on.

Comments