Python Forum

Full Version: How can i create a server for already existing client using Python?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
I am really researching for 2 days now but i can't find any clear thing about that . Can Someone explain which modules i have to learn and which programs to use to capture packets Think ? I really want to make a private server in localhost or on a Virtual Private Server.
you can search server packages on Pypi: https://pypi.org/search/?q=server&o=
might also look at packets: https://pypi.org/search/?q=packet&o=
(Aug-14-2020, 02:33 AM)Larz60+ Wrote: [ -> ]you can search server packages on Pypi: https://pypi.org/search/?q=server&o=
might also look at packets: https://pypi.org/search/?q=packet&o=
that doesn't really answered my question
Say more about what it is you want to do. What kind of server, i.e. what are you planning to use it for? Are you trying to roll your own protocol instead of using an existing one? If so, why?
You could use: https://github.com/KimiNewt/pyshark
pyshark is a Python wrapper for tshark
You can do everything also with sockets, but it's very noisy code and requires deep knowledge about network packets.


Often the GUI tool Wireshark is used to analyze packets.
(Aug-15-2020, 09:24 AM)ndc85430 Wrote: [ -> ]Say more about what it is you want to do. What kind of server, i.e. what are you planning to use it for? Are you trying to roll your own protocol instead of using an existing one? If so, why?

I want to make a private server(source) for a game with already existing client. I have a VPS and if i be succeed i'll just release it. No i'll use game's packets.For the community

(Aug-15-2020, 10:18 AM)DeaD_EyE Wrote: [ -> ]You could use: https://github.com/KimiNewt/pyshark
pyshark is a Python wrapper for tshark
You can do everything also with sockets, but it's very noisy code and requires deep knowledge about network packets.


Often the GUI tool Wireshark is used to analyze packets.

Yeah i have Wireshark already but i don't know how to use it. i'll look for pyshark
It sounds like you're asking two different things. You want this server and you want to analyse network traffic. Are these things related? You want to analyse the traffic to/from your server? I can't say I know anything about games or Source, so I'll leave that for others to answer.

You also really don't need to quote the posts you're replying to in full; people can see those.
I actually don't know how to make a server currently and i think i need to analyse network traffic to capture packets and make server like that but ok.
I don't know what you mean by "make server like that". Do you mean you want to understand the traffic to reverse engineer whatever protocol is being used or something?

I suspect you're quite confused about what you're trying to do. You should probably search for a library that implements whatever protocol this is and lets you start a server, rather than trying to implement the protocol yourself.
Chapanson,

Examine DeadEyes's post more closely. I believe it does what you are looking for,
Pages: 1 2 3