If you cannot electronically file a return, you may also print out the return and send it via US Mail to a nearby filing center based on your state or territory.
You can find a list of addresses based on your location here: https://www.irs.gov/filing/where-to-file-addresses-for-taxpayers-and-tax-professionals-filing-form-1040
Solution Article:
Paper-filing Form 4868 extensions