Is there a way to communicate between server and client in Python without opening up ports? [closed]Is there a way to run Python on Android?What is the difference between a port and a socket?What's the canonical way to check for type in Python?What is the difference between Python's list methods append and extend?How to import a module given it's name as string?How do I return multiple values from a function?Proper way to declare custom exceptions in modern Python?Python progression path - From apprentice to guruWay to create multiline comments in Python?How to check if the string is empty?

What is the origin of the "being immortal sucks" trope?

Who are the people reviewing far more papers than they're submitting for review?

What are the end bytes of *.docx file format

Lumens specs when buying a flashlight/torch. Why maglite has only 680lm but cheap ones have 900,000?

What is the word for a person who destroys monuments?

Carroll's interpretation of 1-forms

Is it safe to put a microwave in a walk-in closet?

Amiga 500 OCS/ECS vs Mega Drive VDP

Does rpcpassword need to be non-obvious in bitcoind?

Can Brexit be undone in an emergency?

How can I check that parent has more than 1 child?

Can a Druid Wild Shaped as a horse use Horseshoes of Speed?

Madrid to London w/ Expired 90/180 days stay as US citizen

Is it possible that the shadow of The Moon is a single dot during solar eclipse?

What was the deeper meaning of Hermione wanting the cloak?

(How long) Should I indulge my new co-workers?

Is it worth the risk to apply to REUs? How likely am I to be accepted?

Paths Short or Long

Is it safe to unplug a blinking USB drive after 'safely' ejecting it?

Why do things cool down?

How could artificial intelligence harm us?

Inquiry answerer

merging certain list elements

Why are there two bearded faces wearing red hats on my stealth bomber icon?



Is there a way to communicate between server and client in Python without opening up ports? [closed]


Is there a way to run Python on Android?What is the difference between a port and a socket?What's the canonical way to check for type in Python?What is the difference between Python's list methods append and extend?How to import a module given it's name as string?How do I return multiple values from a function?Proper way to declare custom exceptions in modern Python?Python progression path - From apprentice to guruWay to create multiline comments in Python?How to check if the string is empty?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















I was working on a decentralized python chat room. I was just wondering, if you don't open up a port, you can't receive messages. But, if you open up a port, you are vulnerable to getting hacked or something. So, is there a way to communicate with Python between a server and a client without opening up ports?










share|improve this question














closed as too broad by MisterMiyagi, m00am, Henry Woody, Paulo Mattos, mpromonet Mar 28 at 22:00


Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.














  • 2





    "But, if you open up a port, you are vulnerable to getting hacked or something", well, I think that would be the least of your problems. Just use secure connections and that's all.

    – Netwave
    Mar 28 at 13:55






  • 1





    The vulnerability of open ports is not that they are ports, but that they are open. If you are open for any kind of communication, that leaves you vulnerable. You should focus on communicating securely, not on communicating without... erm... communicating.

    – MisterMiyagi
    Mar 28 at 14:17

















0















I was working on a decentralized python chat room. I was just wondering, if you don't open up a port, you can't receive messages. But, if you open up a port, you are vulnerable to getting hacked or something. So, is there a way to communicate with Python between a server and a client without opening up ports?










share|improve this question














closed as too broad by MisterMiyagi, m00am, Henry Woody, Paulo Mattos, mpromonet Mar 28 at 22:00


Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.














  • 2





    "But, if you open up a port, you are vulnerable to getting hacked or something", well, I think that would be the least of your problems. Just use secure connections and that's all.

    – Netwave
    Mar 28 at 13:55






  • 1





    The vulnerability of open ports is not that they are ports, but that they are open. If you are open for any kind of communication, that leaves you vulnerable. You should focus on communicating securely, not on communicating without... erm... communicating.

    – MisterMiyagi
    Mar 28 at 14:17













0












0








0








I was working on a decentralized python chat room. I was just wondering, if you don't open up a port, you can't receive messages. But, if you open up a port, you are vulnerable to getting hacked or something. So, is there a way to communicate with Python between a server and a client without opening up ports?










share|improve this question














I was working on a decentralized python chat room. I was just wondering, if you don't open up a port, you can't receive messages. But, if you open up a port, you are vulnerable to getting hacked or something. So, is there a way to communicate with Python between a server and a client without opening up ports?







python sockets






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Mar 28 at 13:52









CrypthusiastCrypthusiast

3210 bronze badges




3210 bronze badges





closed as too broad by MisterMiyagi, m00am, Henry Woody, Paulo Mattos, mpromonet Mar 28 at 22:00


Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.











closed as too broad by MisterMiyagi, m00am, Henry Woody, Paulo Mattos, mpromonet Mar 28 at 22:00


Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.









closed as too broad by MisterMiyagi, m00am, Henry Woody, Paulo Mattos, mpromonet Mar 28 at 22:00


Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.









  • 2





    "But, if you open up a port, you are vulnerable to getting hacked or something", well, I think that would be the least of your problems. Just use secure connections and that's all.

    – Netwave
    Mar 28 at 13:55






  • 1





    The vulnerability of open ports is not that they are ports, but that they are open. If you are open for any kind of communication, that leaves you vulnerable. You should focus on communicating securely, not on communicating without... erm... communicating.

    – MisterMiyagi
    Mar 28 at 14:17












  • 2





    "But, if you open up a port, you are vulnerable to getting hacked or something", well, I think that would be the least of your problems. Just use secure connections and that's all.

    – Netwave
    Mar 28 at 13:55






  • 1





    The vulnerability of open ports is not that they are ports, but that they are open. If you are open for any kind of communication, that leaves you vulnerable. You should focus on communicating securely, not on communicating without... erm... communicating.

    – MisterMiyagi
    Mar 28 at 14:17







2




2





"But, if you open up a port, you are vulnerable to getting hacked or something", well, I think that would be the least of your problems. Just use secure connections and that's all.

– Netwave
Mar 28 at 13:55





"But, if you open up a port, you are vulnerable to getting hacked or something", well, I think that would be the least of your problems. Just use secure connections and that's all.

– Netwave
Mar 28 at 13:55




1




1





The vulnerability of open ports is not that they are ports, but that they are open. If you are open for any kind of communication, that leaves you vulnerable. You should focus on communicating securely, not on communicating without... erm... communicating.

– MisterMiyagi
Mar 28 at 14:17





The vulnerability of open ports is not that they are ports, but that they are open. If you are open for any kind of communication, that leaves you vulnerable. You should focus on communicating securely, not on communicating without... erm... communicating.

– MisterMiyagi
Mar 28 at 14:17












1 Answer
1






active

oldest

votes


















1
















At least one of the client or the server should have an open port (typically, the server). As soon as a TCP connection is established (typically, by the client), a random (= chosen by the operating system) port will be used by the client to be reachable by the server.






share|improve this answer

























  • By definition, an application listening for a connection is a server.

    – James K Polk
    Mar 28 at 19:49














1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









1
















At least one of the client or the server should have an open port (typically, the server). As soon as a TCP connection is established (typically, by the client), a random (= chosen by the operating system) port will be used by the client to be reachable by the server.






share|improve this answer

























  • By definition, an application listening for a connection is a server.

    – James K Polk
    Mar 28 at 19:49















1
















At least one of the client or the server should have an open port (typically, the server). As soon as a TCP connection is established (typically, by the client), a random (= chosen by the operating system) port will be used by the client to be reachable by the server.






share|improve this answer

























  • By definition, an application listening for a connection is a server.

    – James K Polk
    Mar 28 at 19:49













1














1










1









At least one of the client or the server should have an open port (typically, the server). As soon as a TCP connection is established (typically, by the client), a random (= chosen by the operating system) port will be used by the client to be reachable by the server.






share|improve this answer













At least one of the client or the server should have an open port (typically, the server). As soon as a TCP connection is established (typically, by the client), a random (= chosen by the operating system) port will be used by the client to be reachable by the server.







share|improve this answer












share|improve this answer



share|improve this answer










answered Mar 28 at 13:55









GuybrushGuybrush

1,4575 silver badges13 bronze badges




1,4575 silver badges13 bronze badges















  • By definition, an application listening for a connection is a server.

    – James K Polk
    Mar 28 at 19:49

















  • By definition, an application listening for a connection is a server.

    – James K Polk
    Mar 28 at 19:49
















By definition, an application listening for a connection is a server.

– James K Polk
Mar 28 at 19:49





By definition, an application listening for a connection is a server.

– James K Polk
Mar 28 at 19:49








Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.







Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.





Popular posts from this blog

Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript