p.p1%20%7Bmargin%3A%200.0px%200.0px%200.0px%200.0px%3B%20font%3A%209.0px%20Times%3B%20color%3A%20%23000000%7D Python program can always use a socket’s ( ) method to retrieve a tuple that contains the current IP address and port to which the socket is bound.