To answer this, we need to understand some basics of networking and particularly how Internet Protocol works. This is a brief description of each field:
IP Address:
This is the base of modern day networking. Every device recognizes other device (on same network or on other network) by its address, called IP Address. Usually IP addresses are assigned by DHCP server running on a network e.g. the one that runs on a Wi-Fi router. DHCP server assigns a unique IP from the available pool to each device that connects.
So you need to get this value from your router. When configuring IP statically, you may use the same IP that was already assigned to your device when connected as DHCP client. However you should also configure router to assign that specific IP only to your device again when the lease is expired.
Gateway:
Gateways are special IP addresses that serve as the entry and exit points when the router directs traffic from one network to the other. On one side of Wi-Fi router is the local/private network to which all of your mobile phones and PC's are connected. While on the other side there is internet; the public network. So your router has two gateways; the public IP assigned to your router by ISP and the second one is usually the first IP of private network. So if 192.168.1.0 is the network address of you local network and - say - 192.168.1.15 is the IP address assigned to your phone, 192.168.1.1 should be the gateway.
Network Prefix Length:
This basically defines the maximum number of IP addresses (hosts) a network can have. A 24-bit netmask (255.255.255.0) length means the network can have maximum 254 hosts (232 - 24 - 2). First (192.168.1.0) is the network address and last (192.168.1.255) is the broadcast address. Remaining (192.168.1.1 to 192.168.1.254) can be assigned to hosts, including gateway.
Following is the DHCP settings of the Wi-Fi router my phone is connected to.
Further Reading: