How can I get my phone's IP address without touching it?
EDIT: I didn't explain myself clearly probably, so I'd better change my formulation completely.
I am sitting in front of my laptop. I'd like to access my Jolla via SSH. To do this, I have to type ssh nemo@???
(or something equivalent, like typing it in an input box). Problem: my phone's IP address changes depending on which network I am in. Some of these networks have DHCP, and some are workplace networks on which I have no admin access to the router. So I don't really know what to put instead of ???, unless I physically reach for my phone, find its IP (with ifconfig
, or on the settings/developer mode page) and copy it onto my laptop by hand.
Is there a way to set things up so that I don't have to reach the phone to check this address? As far as I know Jolla does not support Zeroconf, which would be a solution.
Am I right, that you actually want assign a fixed IPv4 to your Jolla?
hoschi ( 2017-05-12 15:48:54 +0200 )edit@hoschi No - I want a way to figure out its IP (or something to replace
Federico ( 2017-05-12 16:10:05 +0200 )edit???
inssh nemo@???
) no matter which network it's connected to.@Federico i dont think my idea is a good solution, but if you want to learn a bit abit about scripting this would be a great fun little project. write a script that pings through the local ip address space and compare the mac with your jolla. additionally automatically set up the ssh connection after finding the jolla. im sure there many ways to do that. good and bad. but sounds super fun! :-)
misc11 ( 2017-05-12 17:11:21 +0200 )editI upvoted now your question, because the idea behind and the ARP (johanh) based solution are awesome! IP-Protocol, knowledge is power.
hoschi ( 2017-05-12 22:54:45 +0200 )editssh nemo@Sailfish
Moo-Crumpus ( 2017-05-16 09:08:43 +0200 )edit