0
votes
1answer
28 views

Test connection to a port without actually connecting to it

I have a python socket server (single-threaded, accepts only one connection) running somewhere. I connect to that port and do my things. How can I detect whether port is open or closed without ...
0
votes
1answer
59 views

Error getting server's IP address using Python on CentOS

I'm using Python's socket module to get the server's IP address server_ip = socket.gethostbyname(socket.getfqdn()) I get this error: socket.gaierror: [Errno -2] Name or service not known Weird ...
1
vote
0answers
29 views

How to forward data to mysql server using socket module in python

How to forward data to mysql server using socket module in python, i have try to import socket and connect it to mysql server for test, but have no data received from it, my code like this def ...
1
vote
5answers
741 views

How do sockets deal with routers?

(Not sure if this should be on the unix stackexchange site...) When I make a socket I use IPv4 and a port number. So if I know both of these, but there's a router set up (on a home network; just ...
0
votes
1answer
3k views

installing Gevent on OSX

>>> import gevent Traceback (most recent call last): File "<stdin>", line 1, in <module> File "build/bdist.macosx-10.6-universal/egg/gevent/__init__.py", line 41, in ...