IP is the digital address assigned to your network in the online world. It is used to detect your device, whereas the gateway is an address assigned to your router or modem.