Difference between revisions of "Finding your IP address"

From ZynthianWiki
Jump to: navigation, search
 
Line 1: Line 1:
Here's how to figure out what IP address has been assigned to your Zynthian box by your local network (router). (Assuming you have connected your Zynthian box to your router with an Ethernet cable)
+
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:  
 
Try entering the following terminal/console command in a console/terminal/command prompt window of your computer:  
Line 5: Line 5:
 
  arp -a
 
  arp -a
  
This will display a list of devices and IP addresses for things your computer knows about on your local network.  One of those is likely to be your Zynthian box.  
+
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)  
 
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)  
Line 16: Line 16:
 
This will show you the IP addresses of all computers on your local net that have a running web server.
 
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''' (xxx.xxx.xxx.xxx represents the IP address of your Zynthian) and get the Zynthian web login screen.
+
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=
 
=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.
 
You can temporarily plug in a USB keyboard/mouse and an HDMI screen (TV) to your Pi so you have a physical console.
  
Give the following command (in a terminal):
+
Run the following command in a terminal:
  
 
  ifconfig
 
  ifconfig

Latest revision as of 16: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.