Why am I getting the error “connection refused” in Python? (Sockets)

后端 未结 7 1417
轻奢々
轻奢々 2020-12-01 02:48

I\'m new to Sockets, please excuse my complete lack of understanding.

I have a server script(server.py):

#!/usr/bin/python

import socket #import t         


        
7条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-01 03:01

    I was being able to ping my connection but was STILL getting the 'connection refused' error. Turns out I was pinging myself! That's what the problem was.

提交回复
热议问题