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
2.1m questions
2.1m answers
60 comments
57.0k users