How to close port

How to check that? I know my public ip, but how to check what ip is assigned to my wan port?