How do you find the port number and ip adress on an android?

Im trying to set up a remote to control my android tv. Its off brand so i have to set it up manually and it is asking for the ip adress and port number for the android box. Ive seen ways to check ip adress but not port number.
3 answers 3