# Developing for Android with a local REST API server

DevFeed: [Developing for Android with a local REST API server](<https://devfeed.tech/articles/developing-for-android-with-a-local-rest-api-server-25677.md>)

Original publisher: [Read original article](<https://blog.sanskar10100.dev/developing-for-android-with-a-local-rest-api-server>)

Author: Sanskar Agrawal

Published: 2022-12-26T09:17:38Z

Content type: tutorial

Language: en

Sources: [Sanskar's Stuff](<https://devfeed.tech/sources/sanskar-s-stuff.md>)

Topics: [Android](<https://devfeed.tech/topics/android.md>), [REST API](<https://devfeed.tech/topics/rest-api.md>), [Server](<https://devfeed.tech/topics/server.md>), [Development](<https://devfeed.tech/topics/development.md>), [HTTP](<https://devfeed.tech/topics/http.md>), [networking](<https://devfeed.tech/topics/networking.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [backend](<https://devfeed.tech/tags/backend.md>), [gson](<https://devfeed.tech/tags/gson.md>), [http](<https://devfeed.tech/tags/http.md>), [local](<https://devfeed.tech/tags/local.md>), [networking](<https://devfeed.tech/tags/networking.md>), [rest-api](<https://devfeed.tech/tags/rest-api.md>), [retrofit](<https://devfeed.tech/tags/retrofit.md>), [security](<https://devfeed.tech/tags/security.md>), [server](<https://devfeed.tech/tags/server.md>)

## AI overview

This tutorial explains how to connect an Android app to a REST API server running locally on a development machine. It covers configuring endpoints, using the machine's local address and port, connecting an emulator or physical device, and enabling HTTP while avoiding that setting in production.

## Source excerpt

When you're building an Android app, chances are that it'll be interacting with the internet in some way. More often than not, this is through the use of REST API. First, a refresher Ideally, you'd have a couple of base URLs, one for production usage...