1

Android version 13
One UI Core version 5.1
Model code SM-A045FZKGXID
Kernel version 4.19.191-26097594-abA045FXXU3cWG1

After hours of googling and ChatGPT I randomly found my IP address, instead of being among network-related settings, was among "status information" (why?)

I have no Android experience, but I am a Linux enthusiast and therefore thought about checking the network configuration files in /etc; I downloaded terminals but I couldn't go anywhere: almost all commands are unusable. I understood that Android did some kind of restriction on the file system, even reading files is a hassle. ip and netstat yielded errors.

I decided to unlock the "developer options", connect my phone to the PC, and try to navigate it from there. Unfortunately, I couldn't find the root folder / all I could find was 'Internal Storage' with its DCIM, Documents... subfolders.

I read that through some apps, the default gateway can be obtained. I think though that if apps can do it I should be able to do it as well.

Pat Myron
  • 71
  • 7
Andsewal
  • 11
  • 2

2 Answers2

1

You'll probably find this easier if you turn on USB debugging and work in the ADB shell from a computer. I came to Android from Linux, and find this a more familiar environment than termux.

However, the ADB shell environment is not normal Linux, although it is Linux-like. The shell is different (mksh), the command-line tools are provided by toybox, and the filesystem layout is very different. You can run netstat and ip, though.

John Dallman
  • 2,619
  • 1
  • 15
  • 32
0

I use a 3rd party app called FING to do a network scan and then I usually find the router/access point IP.

Alternatively (but this doesn't always show up):

Settings -> Connections -> Wi-Fi -> find the network you want and click the Gears button to the right of it. Now there may be a button that shows up called Manage Router

enter image description here If it shows up, you can click on it and it will open a webpage to the IP address (management page) of your router (default gateway in most home-routers)

A P
  • 166
  • 1
  • 10