Answer
- Login hours are set in an organization to restrict the user’s who tries to login before or after login hours.
To set login hours in an organization go to Setup=>Administration=>Manage users=>Profiles.
- IP ranges are used to restrict any login attempt is done from unknown IP addresses. Usually organizations maintain login IP ranges.
To set Login IP ranges in salesforce go to Setup=>Administration Setup=>Manage Users=> Profiles.