Python Forum
How can i create a server for already existing client using Python?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How can i create a server for already existing client using Python?
#1
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.
Reply
#2
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=
Reply
#3
(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
Reply
#4
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?
Reply
#5
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.
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
Reply
#6
(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
Reply
#7
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.
Reply
#8
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.
Reply
#9
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.
Reply
#10
Chapanson,

Examine DeadEyes's post more closely. I believe it does what you are looking for,
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Paramiko Server -- Exception (server): Error reading SSH protocol banner ujlain 3 4,647 Jul-24-2023, 06:52 AM
Last Post: Gribouillis
  Client/Server proper finalizing transfer wolfman5874 1 1,475 Jul-04-2022, 07:35 PM
Last Post: wolfman5874
Bug Problem connecting TLS client written in C++ and Twisted server gpropf 0 1,407 Jun-12-2022, 05:57 PM
Last Post: gpropf
  Server/client basic communication ebolisa 0 2,047 Sep-30-2021, 12:22 PM
Last Post: ebolisa
  Client server Multithreading Anan 6 5,944 Apr-21-2021, 08:19 PM
Last Post: SheeppOSU
Question Trouble with Client/Server reverse Shell! Gilush 0 2,808 Feb-03-2021, 01:04 PM
Last Post: Gilush
  Basic client server code question swisscheese 4 3,278 Dec-12-2020, 08:51 AM
Last Post: Larz60+
  Simple TCP Client and TCP Server Problem Vapulabis 5 4,432 Jul-12-2020, 05:09 PM
Last Post: ndc85430
  how to send an image from server to client using PICKLE module dafdaf 1 3,131 Jun-02-2020, 01:08 PM
Last Post: nuffink
  how can i send a list of tuples from the server to the client using sockets? dafdaf 1 3,929 Apr-13-2020, 10:51 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020