Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python Client/Server behind the router

I am looking for advice about technologies (and libraries) for develop client/server service program in Python. It can be run on static IP (it's Ok), dynamic IP, behind the router, mobile provider (so, it should work anywhere if possible). Port-forwading is not an option.

Main problem is connection:

  • send: from Internet to computer behind the router
  • listening of computer behind the router
like image 374
Yury Avatar asked Feb 13 '26 17:02

Yury


1 Answers

Your problem is not a trivial one, but hopefully this can help you get going. Twisted is probably the best library for client/server code in python. STUN and perhaps TURN are generally the protocols for doing this sort of thing.

There's a python library for STUN, though I can't vouch for it.

like image 64
Nathan Binkert Avatar answered Feb 16 '26 05:02

Nathan Binkert