Open Chromium on your Raspi and go to the github for this assignment and download the file to your assignment folder, or create a new python file with the code below, and test it In this script we are creating a user defined function called get_ip_address() by using the "def" command.import socket import socket import fcntl import struct def get_ip_address(ifname): s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) # uncomment the following line if using python2 #return socket.inet_ntoa(fcntl.ioctl(s.fileno(),0x8915,struct.pack('256s',ifname[:15]))[20:24]) # uncomment the following line if using python3 return socket.inet_ntoa(fcntl.ioctl(s.fileno(),0x8915,struct.pack('256s',bytes(ifname[:15],'utf-8')))[20:24]) address = get_ip_address('wlan0') #change wlan0 to eth0 if you want the wired IP address print(address) Note, we are passing wlan0 as the argument. If you are using ethernet you would pass eth0 as the argument In Thonny go to Tools/Manage Packages and search for fcntl, and install it