Zip Code 02871 is located in the state of Rhode Island in the Providence metro area. Zip code 02871 is primarily located in Newport County. The official US Postal Service name for 02871 is PORTSMOUTH, Rhode Island. Portions of zip code 02871 are contained within or border the city limits of Melville, RI, . The area code for zip code 02871 is 401.