Main Content

Get IP Address of Xilinx Zynq Platform

You can get the IP address of the Xilinx® Zynq® platform from the MATLAB® Command Window or using the Linux® command line.

You can use this optional task to:

  • Run an executable on a different hardware from the previous one you used. (Update the Host name parameter as described in Build and Run Executable on Xilinx Zynq Platform.)

  • Open a telnet or SSH session with hardware whose IP settings you do not know.

  • Configure the UDP Send block.

If you have multiple Xilinx Zynq platform boards connected to your host computer, disconnect the ones you are not using.

To get the Xilinx Zynq platform IP address using the MATLAB Command Window, enter:

h = zynq()
setupZynqHardware(h)

The hardware replies with information about its IP address, user name, password, build-directory, and COM port. For example:

Connecting to ZC702 using serial port COM20...
Setup for ZC702 is complete...
MATLAB will use following settings to communicate with ZC702 board:
IP Address       :172.28.144.60
User name        :root
Password         :root
Build-directory  :/root
COM port         :COM20

Alternatively, you can get the COM port number by running a Command Line Session with Xilinx Zynq Platform.

Related Topics