If you want to in Android Studio, it depends on what exactly you mean by "get remote server." Here are some common interpretations and solutions:
User
not git remote machine in network
Assistant
User
in Android studio
Assistant
User
not listing
Assistant
User
i want to access a android code that is in a remote pc.
Assistant
User
how to unmount
Assistant
The method to unmount a mounted remote folder depends on your operating system and how you mounted it.
How to Unmount a Remote Folder
On Linux and macOS (Unmount SSHFS or Network Mount)
If you mounted with sshfs or a network filesystem, run:
fusermount -u /local/mount/point # Linux
or
umount /local/mount/point # Linux and macOS (may require sudo)
Examples:
fusermount -u ~/remote_project
or
sudo umount /Volumes/remote_project # macOS typical mount path for SSHFS
On Windows
connect to a remote server
1. Access Remote Git Repository
If by "remote server" you mean a Git remote repository (like GitHub, GitLab, Bitbucket), Android Studio supports that natively.
Steps:
Open your project in Android Studio.
Go to VCS > Git > Remotes.
Click the + button to add a new remote repository URL (e.g., https://github.com/username/repo.git).
After adding the remote, you can fetch, pull, and push changes directly from Android Studio.
2. Access Remote Backend Server (API)
If you have a remote backend server (e.g., REST API) that your Android app communicates with:
Steps:
In your app code, use the remote server’s URL as the base URL for your network client (e.g., Retrofit, OkHttp).
Example using Retrofit:
Retrofit retrofit = new Retrofit.Builder()
.baseUrl("https://api.yourremoteserver.com/")
.addConverterFactory(GsonConverterFactory.create())
.build();
No special setup in Android Studio is needed beyond normal networking code.
3. Remote Debugging or Running App on a Remote Server
If you want to run or debug your app on a remote device or emulator, you typically need:
The remote device connected via ADB over network or SSH.
Use adb connect <device_ip>:5555 to connect to a remote device.
Then, Android Studio can deploy and debug the app as usual.
4. SSH into Remote Server from Android Studio Terminal
If you want to access a remote Linux server (via SSH) from within Android Studio:
Open the Terminal tab in Android Studio (bottom pane).
Use SSH command:
ssh username@remote_server_ip
You can interact with the remote server as needed.
Summary
Use Case
How to Get Remote Server in Android Studio
Git remote repo
Add remote under VCS → Git → Remotes
Communicate with backend API
Use remote server URL in networking code
Debug/run app on remote device
Connect device via ADB over network
SSH to remote machine
Use Terminal inside Android Studio for ssh command
If you clarify your exact needs, I can provide more specific instructions!
Got it! You want to connect Android Studio to a remote machine in your network, probably to:
Run/debug the Android app on a remote device or emulator
Use a remote server (e.g., Linux box) for building/running/debugging
Access remote files or services during development
Common scenarios and how to achieve them
1. Run/Debug on a Remote Android Device over Network
You can connect to a physical Android device over Wi-Fi (ADB over network):
Steps:
On the remote Android device:
Enable Developer Options and activate USB Debugging (and maybe enable "ADB over network" if available).
Connect the device temporarily via USB to your development machine:
adb tcpip 5555
Disconnect USB, then connect over Wi-Fi by executing on your development machine:
adb connect <device-ip>:5555
Confirm device is connected:
adb devices
Android Studio should now detect the remote device and allow you to run or debug on it as if it's local.
2. Use Remote Development Machine to Build or Debug
If your build environment is remote (e.g., Linux server) and you want Android Studio to build there:
Android Studio doesn't support remote building out of the box.
However, you can:
Use Remote Desktop / SSH to connect to the remote machine.
Edit files locally and copy/sync sources to remote with tools like rsync.
Build manually on the remote server or set up CI/CD pipelines.
Alternatively, you can use JetBrains Gateway / Remote Development for IntelliJ IDEA Ultimate that supports remote development, but Android Studio does not currently support this fully.
3. Access Remote Files in Android Studio
If you want to open files located in a remote Linux server:
Use SSHFS or mount remote directory locally to have access inside Android Studio.
Then open project from /local/mountpoint in Android Studio.
4. SSH into Remote Server from Android Studio Terminal
Open Terminal pane in Android Studio.
Run:
ssh username@remote_server_ip
This is useful if you want to run commands on the remote machine during your dev process.
Summary:
Goal
How To
Run/debug app on remote Android device
Use ADB over TCP/IP (adb connect <device_ip>:5555)
Remote build/debug server
Use SSH, manual sync, or JetBrains Gateway (not native)
Access remote files in IDE
Use SSHFS or mount network share
Run commands on remote machine
Use Terminal in Android Studio with ssh command
If you want step-by-step help for any of these, just ask!
Understood, you want to connect Android Studio itself to a remote machine in your network to run/debug or work with that remote machine directly within Android Studio.
Here’s a focused answer on how to do that inside Android Studio:
How to connect to a remote server/machine in Android Studio (network remote machine)
1. Run/Debug on Remote Android Device (via ADB over Network)
If you want to deploy and debug your app on a physical Android device connected remotely in your network (not locally via USB):
Make sure the remote device has Developer Options and USB Debugging enabled.
On that device, enable ADB over TCP/IP (this is device-dependent, often found in Developer Options).
From your development PC (where Android Studio runs), open Terminal (inside Android Studio or external shell) and run:
adb connect <remote-device-ip>:5555
Run adb devices to verify it connected.
In Android Studio "Select Deployment Target", your remote device should now appear.
From there, run/debug your app as usual.
2. SSH Integration using Plugins
Android Studio currently does not have built-in remote development support, but you can use SSH-related plugins or external tools:
Remote Hosts Access Plugin
This plugin lets you browse and edit files on a remote server via SSH/SFTP directly inside Android Studio:
Go to File > Settings > Plugins.
Search for Remote Hosts Access.
Install and restart Android Studio.
You can add an SSH connection, browse remote files, download/upload, and edit remotely.
3. Edit Remote Files via SSHFS or Network Mount
You can mount a remote directory from the remote server to your local filesystem using SSHFS or other network mounts.
Once mounted locally, open the project folder from this mount in Android Studio.
Now Android Studio works on remote files transparently.
4. SSH into Remote Server in Android Studio Terminal
Android Studio has a built-in Terminal window.
Open it and execute SSH:
ssh username@remote_server_ip
Work with your remote server command line directly from Android Studio.
Summary
Task
How-To in Android Studio
Run/debug app on remote Android device
Use adb connect <device_ip>:5555 in Terminal, select remote device
Edit remote files on server
Use Remote Hosts Access plugin to browse/edit via SSH/SFTP
Work on remote project folder
Mount remote folder locally (SSHFS), open project from mounted path
Access command line on remote machine
Use Terminal tab inside Android Studio and ssh into remote host
If you tell me which of the above exactly matches what you want to do, I can provide a more detailed step-by-step guide!
Thanks for clarifying! It sounds like you want to connect directly from Android Studio to a remote server/machine on your network — for example, to debug/run your app there, or to open the remote server as a project — but Android Studio doesn’t automatically show or detect remote servers or devices unless connected properly.
Here is how to set it up so your remote machine appears inside Android Studio and you can use it:
If you want to connect to a remote Android device on your network so it appears inside Android Studio (for running/debugging):
Ensure ADB on your machine can see the remote device
On your development PC (where Android Studio runs), open Terminal (inside or outside Android Studio).
Run:
adb connect <remote_device_ip>:5555
Then:
adb devices
You should see your remote device listed.
Restart Android Studio (if device doesn’t appear immediately).
When you click Run > Select Deployment Target inside Android Studio, your remote device should now be listed.
If you want Android Studio to connect to a remote Linux server for file editing or building:
Android Studio doesn't include built-in remote project opening like, for example, VS Code Remote - SSH.
You need to mount the remote folder locally:
Use SSHFS, SMB, NFS, or other network file system to mount remote server directory on your computer.
Then open the mounted directory in Android Studio as a local project.
Alternatively, use the Remote Hosts Access plugin to browse/edit files directly on a remote server inside Android Studio.
Important notes:
Just putting a "remote server IP" somewhere in Android Studio won't make Android Studio detect it or connect automatically.
You must either:
Connect remote Android device over ADB TCP/IP (adb connect ip)
Mount remote files locally and open them
Use SSH plugins or terminal to connect manually
Quick test to check connectivity to a remote device:
In your terminal (inside Android Studio’s Terminal window or your OS terminal), run:
adb connect 192.168.x.y:5555
adb devices
If no device appears, check:
Is Developer Options + USB debugging enabled on device?
Is device on same network?
Does device accept adb connections over network? (some devices need adb tcpip 5555 command run locally via USB first)
If this doesn’t match your need, please explain exactly what you want to do on the remote server/machine inside Android Studio, e.g.:
Do you want to run/debug your app on a remote Android device?
Want to open and edit a remote project folder?
Want to build on remote server?
Something else?
This will help me to give precise instructions.
Thanks for clarifying!
You want to access Android project code stored on a remote PCfrom inside Android Studio running on your local machine.
Android Studio itself does not natively support opening remote projects directly over the network, but you have several practical ways to work with remote code:
How to Access Android Project Code Stored on a Remote PC
Option 1: Mount the Remote PC Shared Folder Locally
Share the project folder on the remote PC over the network:
On the remote PC, share the folder containing the Android project.
On Windows: Right click folder → Properties → Sharing → Share folder.
On Linux/macOS: Set up Samba/NFS/SSHFS for file sharing.
Map or mount the remote shared folder on your local machine
On Windows: Map Network Drive
File Explorer → Map Network Drive → enter \\remotePCname\sharedFolder