Difference between revisions of "Finding your IP address"

From ZynthianWiki
Jump to navigation Jump to search
(Created page with "If you your browser can’t find the zynthian.local address, you will need to figure out what IP address has been assigned to your Zynthian box by your local network (router)....")
 
 
(4 intermediate revisions by one other user not shown)
Line 1: Line 1:
If you your browser can’t find the zynthian.local address, you will need to figure out what IP address has been assigned to your Zynthian box by your local network (router). You can try entering the following terminal/console command in a console window of your computer:  
+
Here's how to figure out which IP address has been assigned to your Zynthian box by your local network (router).
 +
 
 +
Try entering the following terminal/console command in a console/terminal/command prompt window of your computer:  
  
 
  arp -a
 
  arp -a
  
This will display a list of devices and IP addresses for things your computer knows about on your local network.
+
This will display a list of devices and IP addresses for things your computer know about on your local network. One of those is likely to be your Zynthian box.
 +
 
 +
Another technique is to do a portscan (just on port 80) of the entire local subnet (usually 192.168.0.x or 192.168.1.x)
 +
 
 +
Use the following commands to do this:
 +
 
 +
  nmap -p 80 192.168.1.0-255
 +
  nmap -p 80 192.168.0.0-255
 +
 
 +
This will show you the IP addresses of all computers on your local net that have a running web server.
 +
 
 +
Now you can browse to '''http://xxx.xxx.xxx.xxx''' (where xxx.xxx.xxx.xxx represents the IP address of your Zynthian) and get the Zynthian web login screen.
 +
 
 +
=Finding the ip address of a Raspberry Pi with keyboard and screen=
 +
You can temporarily plug in a USB keyboard/mouse and an HDMI screen (TV) to your Pi so you have a physical console.
 +
 
 +
Run the following command in a terminal:
 +
 
 +
ifconfig
 +
 
 +
and look for “inet addr” within all the stuff that spews onto the screen. If there is too much information for you to find your IP address, enter
 +
 
 +
ifconfig | less
 +
 
 +
to limit the amount displayed, or
 +
 
 +
ifconfig | grep 'inet addr:'
  
Now you can browse to '''http://xxx.xxx.xxx.xxx''' (xxx.xxx.xxx.xxx represents the IP address of your Zynthian)
+
to only display the IP address.

Latest revision as of 15:06, 13 January 2020

Here's how to figure out which IP address has been assigned to your Zynthian box by your local network (router).

Try entering the following terminal/console command in a console/terminal/command prompt window of your computer:

arp -a

This will display a list of devices and IP addresses for things your computer know about on your local network. One of those is likely to be your Zynthian box.

Another technique is to do a portscan (just on port 80) of the entire local subnet (usually 192.168.0.x or 192.168.1.x)

Use the following commands to do this:

 nmap -p 80 192.168.1.0-255 
 nmap -p 80 192.168.0.0-255 

This will show you the IP addresses of all computers on your local net that have a running web server.

Now you can browse to http://xxx.xxx.xxx.xxx (where xxx.xxx.xxx.xxx represents the IP address of your Zynthian) and get the Zynthian web login screen.

Finding the ip address of a Raspberry Pi with keyboard and screen

You can temporarily plug in a USB keyboard/mouse and an HDMI screen (TV) to your Pi so you have a physical console.

Run the following command in a terminal:

ifconfig

and look for “inet addr” within all the stuff that spews onto the screen. If there is too much information for you to find your IP address, enter

ifconfig | less 

to limit the amount displayed, or

ifconfig | grep 'inet addr:' 

to only display the IP address.