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
What are you planning to use it for?
ndc85430, i mean making server the way i said, also let me clarify a bit. I already have a Mediaserver of a game and i want to make a server emulator.

Larz60+ yes i already saw his suggestion but i want to make sure that it's the correct thing. i don't know if i have to do something with Wireshark
(Aug-17-2020, 06:05 AM)Chapanson Wrote: [ -> ]ndc85430, i mean making server the way i said, also let me clarify a bit. I already have a Mediaserver of a game and i want to make a server emulator.

I don't really know what you mean by any of this. What is a "Mediaserver" and what do you mean by "server emulator"?

Quote:Larz60+ yes i already saw his suggestion but i want to make sure that it's the correct thing. i don't know if i have to do something with Wireshark

pyshark is basically a Python library that will let you analyse network traffic from a capture file or from a network interface in a Python program. Wireshark is a GUI program that will let you do those tasks. Do you actually want to do this programmatically? If so, then pyshark, if not, then just use Wireshark.

What did you mean when you said "capturing packets"? I'm wondering if we've misunderstood and you don't actually want to analyse the traffic at all.
Mediaserver is basicly a client
Server Emulator is the reimplementation of online game servers, typically as clones of proprietary commercial software by a third party of the game community. The private server is not always made by the original company, but usually attempts to mimic it in some way.
https://en.wikipedia.org/wiki/Server_emulator

How can i capture packets from other kind of files instead of .cap or network interface?
(You said pyshark only allows to capture from these)
Quote:What did you mean when you said "capturing packets"? I'm wondering if we've misunderstood and you don't actually want to analyse the traffic at all.
I don't really know how to explain this but i just want to make a server emulator for a game. and i thought the only way to do these is capturing packets.I am kinda confused about that
So, your immediate task is to analyse the network traffic in order to understand the protocol this game uses so you can implement the server?

1. Are you sure there are no libraries that do this already?

2. If you do need to look at the traffic, why do you need to do so programmatically? Would it not be easier to use Wireshark?

3. What other file formats do you want to read the data from, if not the ones supported by tcpdump, Wireshark, etc.? Does whatever is producing those not have a library to read them? What's also wrong with capturing the live traffic?

Do you actually know anything about networking at all?
(Aug-18-2020, 03:55 AM)ndc85430 Wrote: [ -> ]So, your immediate task is to analyse the network traffic in order to understand the protocol this game uses so you can implement the server?

1. Are you sure there are no libraries that do this already?

2. If you do need to look at the traffic, why do you need to do so programmatically? Would it not be easier to use Wireshark?

3. What other file formats do you want to read the data from, if not the ones supported by tcpdump, Wireshark, etc.? Does whatever is producing those not have a library to read them? What's also wrong with capturing the live traffic?

Do you actually know anything about networking at all?

My main task is making a server emulator and not analysing network traffic, i don't know how this things working

1. I don't know
2.I don't want to look at traffic, i am kinda confused about that
3.I don't know

I don't know anything about networking Wall
Right, I thought you wanted to look at the traffic to understand how the server and client communicate so you could reverse engineer whatever this server does.

I can't offer any more advice really, since I don't know about games or how these things work either. Perhaps give more details about the game? Have you searched GitHub, PyPI, etc. for relevant libraries already?
No problem, details of the game doesn't matter.Yeah i've searched in many places but couldn't find anything people only said socket module but that's not for making server emulator. about reverse engineering, i don't really know what that means but i'll checkout thanks!
If the details of the server and the protocol used by the client and server aren't publicly available, then you need to use some techniques to try and infer them. That's what reverse engineering is. In this case, I thought your approach was to understand the network traffic to try and reverse engineer, but OK.
Quote:If the details of the server and the protocol used by the client and server aren't publicly available
What do you mean by that? I have the client but i want to make server emulator to make it online
but simply i don't know how that's why i am here
Pages: 1 2 3