Score:1

How to open communication PYTHON socket with a SERVER SOCKET on AWS EC2 to a CLIENT SOCKET on my local pc?

by flag

Sorry my english is not good

I want to established connexion from my client socket on my local pc to a host server socket on AWS EC2 instance.

I'm trying to follow suggestions from here and code from here.

The issue I'm facing is that I do not know how to open a socket and listen to incoming traffic on EC2. My EC2 is a UBUNTU free tier instance. No matter what I try I can't get it to work.

Someone said here that you have to put the private address of the EC2 on the client side and the public address on the server side. But I don't know specifically what address it is especially since I'm using an ubuntu engine

And how to run socket server program 24/7 ?

I would appreciate if somebody showed me how to do this properly.

Please please

That is how i'm try

Here is a part of code from my server socket on AWS EC2

Here is a part of code from my client socket on my local pc

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.