doc/pages/01.administrate/05.install/02.findinglocalip/finding_the_local_ip.md

63 lines
2.8 KiB
Markdown
Raw Normal View History

2021-02-06 15:15:00 +01:00
---
title: Finding your server's local IP
template: docs
taxonomy:
category: docs
2021-02-06 18:03:27 +01:00
routes:
default: '/finding_the_local_ip'
2021-02-06 15:15:00 +01:00
---
On an installation at home, your server should typically be accessible using the `yunohost.local` domain. If for any reason this does not work, you may need to find the *local* IP of your server.
2021-02-12 20:05:18 +01:00
## What is a local IP ?
The local IP is the address used to refer to your server inside the local network (typically your home) where multiple devices are connected to a router (your internet box). The local IP typically looks like `192.168.x.y` (or sometimes `10.0.x.y` or `172.16.x.y`)
2021-02-12 20:05:18 +01:00
## How to find it ?
Any of these tricks should allow you to find the local IP of your server:
2021-02-12 20:05:18 +01:00
[ui-tabs position="top-left" active="0" theme="lite"]
[ui-tab title="(Recommended) With AngryIP"]
2021-02-13 21:06:52 +01:00
You can use the [AngryIP](https://angryip.org/download/) software to achieve that. You just need to scan these local ip ranges in this order until you find the active IP corresponding to your server:
- `192.168.0.0` -> `192.168.0.255`
- `192.168.1.0` -> `192.168.1.255`
- `192.168.2.0` -> `192.168.255.255`
- `10.0.0.0` -> `10.0.255.255`
- `172.16.0.0` -> `172.31.255.255`
!!! **Tips**:
!!! - you can order by ping like on this screenshot to easily see effectively-used IP.
!!! - your server should typically be displayed as listening on port 80 and 443
2021-07-26 21:46:31 +02:00
!!! - in case of doubt, just type `https://192.168.x.y` in your browser to check if it's a YunoHost or not.
2021-02-12 20:05:18 +01:00
![](image://angryip.png?class=inline)
[/ui-tab]
[ui-tab title="With your internet router / box"]
Connect to your internet box / router interface to list the machines connected.
[/ui-tab]
[ui-tab title="With arp-scan"]
If you're using Linux, you can open a terminal and use `sudo arp-scan --local` to list the IP on your local network (this may also work in Windows);
If the `arp-scan` command displays a confusing number of devices, you can check which ones are open to SSH with `nmap -p 22 192.168.1.0/24` to sort them out (adapt the IP range to your local network)
[/ui-tab]
2021-02-13 21:06:52 +01:00
[ui-tab title="With a direct access on the server"]
2021-02-12 20:05:18 +01:00
Plug a screen on your server, log in and type `hostname --all-ip-address`.
2021-02-13 21:06:52 +01:00
The default credentials (before post-installation!) to log in are:
- login: root
- password: yunohost
2021-02-12 20:05:18 +01:00
2021-07-14 08:46:26 +02:00
(If you are using a raw Armbian image instead of the pre-installed YunoHost image, the credentials are root / 1234)
2021-02-12 20:05:18 +01:00
[/ui-tab]
[/ui-tabs]
## I still can't find my local IP
2021-01-14 10:15:43 +01:00
If you are unable to find your server using any of the previous tricks, maybe your server did not boot correctly:
- Make sure that your server is properly plugged in;
- If you're using an SD card, make sure the connector is not too dusty;
- Plug a screen on your server and try to reboot to check that it's properly booting;
- Make sure that your ethernet cable is working and properly plugged in;