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
1.4m articles
1.4m replys
5 comments
57.0k users