Skip to content
Android SMS gateway

How to Use an Old Android Phone as an SMS Gateway (Step by Step)

Turn a spare Android phone and a SIM card into an SMS gateway in about 15 minutes. Setup steps, what to check on the phone, and how to keep it running 24/7.

smsportal teamPublished: 7 min read
An old Android phone on a charger given a new life as an SMS gateway

A spare Android phone in a drawer is a free SMS server. If you want to use an old Android phone as an SMS gateway, you need the phone, a SIM card with texting in the plan, a charger and about 15 minutes. This guide covers which phones work, the setup steps, and the small habits that keep the phone sending for months.

What do you need to turn an old phone into an SMS gateway?

You need an Android phone running 7.0 or newer, a SIM with texting included, a charger and a stable internet connection. A cracked screen or weak battery does not matter much, as long as the phone boots, takes the SIM and can run the app.

  • Phone. Android 7.0 (API 24) or newer. Any brand works.
  • SIM. An active card from your own plan. Many plans include SMS in the price, but check the terms of your plan. If you need a second number, a cheap prepaid SIM is an option.
  • Power. A charger and a spot where the phone can stay plugged in.
  • Internet. Wi-Fi is fine. The phone only needs data to talk to the server, and the SMS itself uses the cellular network.
  • Account. A smsportal account. It has a free plan to start.

Note: before you commit a number to the gateway, decide which one it is. Customers will reply to it, so do not use a SIM you plan to throw away. For the bigger picture of what a gateway is, read what an Android SMS gateway is.

How do you set up an old Android phone as an SMS gateway?

Install the app, connect the phone to your account with a QR code, grant permissions, check device health and send a test message. The whole process takes around 15 minutes, with most of it spent on the battery and permission screens.

Step 1. Prepare the phone and SIM

Charge the phone and insert the SIM. If the phone has a factory-reset option you trust, use it so no old apps compete for resources. Connect it to Wi-Fi and, if you can, install system updates.

Step 2. Install the gateway app

Download the Android app on the phone. The APK comes from outside Google Play, so Android asks you to allow installs from the browser or file manager you used. Open the app and go through the welcome screens.

smsportal app welcome screen (Polish UI)

Step 3. Connect the phone to your account

In the dashboard click Add device. In the app, scan the QR code or enter the server URL and API key by hand. The phone shows up as a device. Give it a name that tells you where it lives, such as "Warehouse phone".

Connecting the app with a QR code or API key (Polish UI)

Step 4. Grant permissions and disable battery optimization

Allow SMS access, notifications and unrestricted battery use. Many old phones aggressively kill background apps, and this setting is the most common reason a gateway stops sending.

Permissions screen: SMS, notifications, battery (Polish UI)

Step 5. Check device health

Open the device health screen. It checks battery optimization, permissions and network state, and shows what to fix.

Device health checks: battery optimization, permissions, network (Polish UI)

Open it again after a restart or system update. Updates sometimes reset permissions.

Step 6. Send a test message

From the dashboard, send a short text to your own number, or use the API:

bash
curl -X POST "https://smsportal.app/api/v1/gateway/send-sms" \
  -H "x-api-key: $SMSPORTAL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"recipients": ["+14155550123"], "message": "Gateway test: it works."}'

If it arrives, the phone is a working gateway. Then read SMS API without Twilio to wire it into your code.

How do you keep an old phone running 24/7?

Keep it charged, connected and exempt from battery optimization, and check it on a schedule. The phone is a small server, and small servers fail for boring reasons: power, network, storage and updates.

  • Power. Use a good charger and cable. Place the phone where it is not cooked by sunlight or a radiator.
  • Battery health. An old battery degrades. Swelling is a safety risk. Check the phone every few weeks, and if the case bulges, stop using that battery.
  • Network. Prefer a stable Wi-Fi connection, and keep mobile data as a fallback if your plan allows it.
  • Storage. A full phone can stop apps. Keep a few gigabytes free.
  • Updates. Pause automatic system updates at inconvenient times, and re-run the device health check after one.
  • Screen and lock. Set a screen lock if the phone sits in a public place, since the SIM and your messages are on it.
  • Alerts. If the gateway going offline would hurt, watch the device status in the dashboard.

Tip: if the phone goes offline, queued messages wait up to 72 hours and then expire. For one-time codes, set a short validity on the code itself.

What can an old phone gateway do and not do?

It can send and receive SMS through an API, dashboard and webhooks, at the pace of one phone. It cannot send marketing blasts at wholesale speed, and it has no sender ID, MMS or WhatsApp.

By default the app waits 5 seconds between messages, so one phone sends about 12 per minute, around 720 per hour. For more volume you add phones, but real throughput depends on the phone and carrier, and we do not promise numbers. Carrier terms also matter: "unlimited texts" plans generally assume normal personal use, so check your plan before you automate anything heavy. The detailed trade-offs are in Android SMS gateway limits and when not to use one.

Good fits for a spare phone:

  • appointment and pickup reminders where customers reply,
  • order status texts for a small shop,
  • alerts from servers or home automation,
  • an AI agent that needs a phone number, via the MCP server.

The Android app page shows the app features, including inbound filters, a segment counter and dark mode.

Which old phones are a poor fit?

Most Android phones from the last decade work, but a few are not worth the trouble. Skip any phone that cannot run Android 7.0 or newer, that has a damaged SIM tray, or whose battery is swollen.

  • Android below 7.0. The app will not install.
  • A broken SIM slot or no signal. The gateway needs a working cellular radio to send SMS.
  • A swollen battery. Do not leave it charging. Replace or remove the battery.
  • A phone with a failing charge port. An intermittent charger connection means intermittent sending.
  • A phone tied to a locked-down carrier profile that blocks sideloaded apps. Check that you can install the APK.

If the phone has two SIM slots, you can run two numbers on it. The API field simSubscriptionId selects the SIM for each message, and the default SIM sends when you leave it out.

What does it cost to run an old phone as a gateway?

The cost is your mobile plan, the electricity for a charger, and the gateway plan. smsportal has a free plan to start, with paid monthly plans in pricing and no per-message fees from smsportal.

Texting is often included in the plan, but plans differ, so check yours. A phone on a charger draws a few watts, which adds little to a power bill. The comparison with per-message providers is in SMS API cost comparison, and Twilio alternatives for small volume shows where per-message pricing starts to make sense.

What should you do when the old phone stops sending?

Open the device health screen first. Most stops come from a sleeping app, a missing permission or lost connectivity.

  1. Check that the phone is on Wi-Fi or has mobile data.
  2. Open the app and look at the gateway status on its dashboard.
  3. Disable battery optimization for the app again if the system reset it.
  4. Confirm the SMS and notification permissions are still granted.
  5. Free storage if the phone is almost full.
  6. Restart the phone and send a test message.
App dashboard showing gateway online status

If a message sits in queued for a long time, the phone cannot reach the server. After 72 hours queued messages expire.

Start with the phone in your drawer

You can test the whole idea for free. Create an account, install the app on the old phone and send yourself a text. If you later outgrow the free plan, see pricing.

Frequently asked questions

How can I make my own SMS gateway?

Install a gateway app on an Android phone that has a SIM card, connect the phone to a server by scanning a QR code, and call the server's API to send texts. The phone does the sending, so you need no carrier contract beyond your mobile plan.

What Android version do I need for an SMS gateway?

smsportal needs Android 7.0 or newer. Older phones that cannot run it are not suitable, but most devices from the last decade can.

Can I leave an old phone plugged in all the time?

Yes, but ventilate it and watch the battery. A swollen battery is a hazard, so replace it or remove it if the phone supports running on a charger without one. Check the phone every few weeks.

Does the old phone need a data plan?

It needs internet to talk to the server, but not necessarily mobile data. Stable Wi-Fi works. The SIM only has to send and receive SMS, so a plan with included texts is enough.

Why did my old phone stop sending texts?

The usual cause is battery optimization putting the app to sleep, a missing permission, lost Wi-Fi, or a full phone storage. The device health screen in the app checks for these. Queued messages wait up to 72 hours before they expire.

Send your first SMS today

Create a free account, connect your phone and see how customers respond to messages from your number.