* Click the Start button, select Run
* Type CMD and press Enter.
* A Command prompt window will open. Type ipconfig and press Enter.
* Several lines of information will be displayed. The IP address looks like "188.8.131.52" - yours will probably have different numbers near the end.
Your computer has about 50,000 ports, numbered from 1 to 49,999. The second part of your question doesn't make sense.