This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Kurt.Rose
Recipients Kurt.Rose
Date 2015-05-12.19:30:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1431459051.52.0.540672093774.issue24169@psf.upfronthosting.co.za>
In-reply-to
Content
Sorry, dumb mistake on my part.  I should have been calling getpeername(), not getsockname()

In that case the result is 80:
>>> socket.create_connection( ('google.com', 2**16 + 80) ).getpeername()
('74.125.239.41', 80)

The "random" ports were the client-side ephemeral ports.
History
Date User Action Args
2015-05-12 19:30:51Kurt.Rosesetrecipients: + Kurt.Rose
2015-05-12 19:30:51Kurt.Rosesetmessageid: <1431459051.52.0.540672093774.issue24169@psf.upfronthosting.co.za>
2015-05-12 19:30:51Kurt.Roselinkissue24169 messages
2015-05-12 19:30:51Kurt.Rosecreate