I'm hoping someone here will be able to help me. I'm trying a configure a basic TCP server/client connection. It's literally an example I read out of a book. I can get the Server code up and running on my main machine but when I go about connecting the client from my laptop to the server it says that the server is taking too long to respond. Will post pics. I need some help configuring it to work. I'm just trying to sharpen my skills a bit and it's irritating that this example isn't working.
This is the code running on my laptop I can't figure out why it won't connect to the server.
This is the error I get when I run the Client.
>>60618093
BUMP
anybody?
Try like address 0.0.0.0? Or use another tutorial
>>60618047
>198
>>60618425
Fixed that since posting the picture. Now I'm stuck with "refusing to connect error."
>>60618482
Is the firewall enabled, and blocking that port, on your server side machine?
>>60618539
I've tried it without the firewall enabled. I even checked to be sure the port was listening with "netstat" all was well it just refuses to connect.
>>60618679
What, if any, output appears on the server side?
Consider removing some pieces. Run both scripts on one machine, talking to first the loopback address, then to that machine's external IP.
For one thing, you're using Windows for this.
For another thing, if you bind to a specific IP address instead of just the port, you can only accept connections from that IP address (i.e. the server)
This can be useful if you only intend to have another process on the machine connect (e.g. nginx) but you're trying to connect from a different computer.
You should be using asyncio or are you going to handle each connection manually?
And the answer is that you're not sending anything in your while True loop. Just sending "Death to niggers" routinely will avoid that error
>>60617994
Pythong uses C libraries to make things works.
Why are using a wrapper language to begin with?
>Anthing above immediate language to assembly is shit.