Section 1 establishes that the Indian Penal Code applies throughout India except Jammu and Kashmir. Section 2 establishes that every person in India is subject to punishment under the Code for acts committed within India, including citizens, non-citizens, and foreigners who accept Indian law. Section 3 allows for offenses committed outside of India by those subject to Indian law to be tried within India. Section 4 further extends the code to offenses committed outside of India by Indian citizens or those on Indian-registered ships/aircraft, as well as cybercrimes targeting computers in India.