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

后端 未结 7 1444
轻奢々
轻奢々 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:14

    in your server.py file make : host ='192.168.1.94' instead of host = socket.gethostname()

提交回复
热议问题