I am new to socket programming and I am trying to find the difference between
s.bind((socket.gethostname(), 80))
s.bind(('localhost', 80))
and
s.bind(('127.0.0.1', 80))
I have read different documents but still the concept is not clear to me
755k questions
754k answers
5 comments
53.3k users