Results 1 to 3 of 3
Thread: Creating a basic proxy server
- 04-25-2012, 10:55 AM #1
Member
- Join Date
- Apr 2012
- Posts
- 21
- Rep Power
- 0
Creating a basic proxy server
Hello!
i'm currently learning network programming in java and have some question in creating a proxy server.
Currently im making the HTTP part of the program which gets the HTTP post/get/connect request with a tokenizer etc (all that should be fine and possible using the URLConnection method).
Anyways, how do proceed with redirecting the packet stream when i for example want to proxify a game ( lets take World of Warcraft as example, just because it uses TCP packeting afaik).
The proxyroute would be the following:
World of Warcraft(Injected with forward thingy (so the destination of the packets goes to the server) ---> ProxyServer ---> Internet.
When the packets from the game client reaches the server, how would proceed with these packets, or in other words. how can the ProxyServer know where to send the packets?. Is there a regular HTTP header in these packets aswell? (GET/POST/CONNECT)`
Sorry if this doesnt make sense at all, English is not my native tounge and i do not use it that much :)
Thank you!
Driiper.
- 04-26-2012, 05:21 PM #2
Member
- Join Date
- Apr 2012
- Posts
- 21
- Rep Power
- 0
Re: Creating a basic proxy server
anyone have any idea regarding this topic?
- 04-27-2012, 01:04 AM #3
Member
- Join Date
- Apr 2012
- Posts
- 1
- Rep Power
- 0
Re: Creating a basic proxy server
Hi driiper,
not sure if i understand the question right, but i think the trick is to tie each connection to it's own a thread. So your clients connects to proxy and opens a thread, your proxy keeps thread open and makes a request to the target server, waits until it gets a response and then forwards the received packets using this very same thread.
Similar Threads
-
proxy server
By mahamudsust in forum NetworkingReplies: 3Last Post: 03-04-2013, 06:04 AM -
Implement a simple TCP client- server system that makes use of a simple proxy server
By kurtcobain92 in forum Advanced JavaReplies: 3Last Post: 04-04-2012, 12:38 AM -
Proxy Server Development
By Comediant in forum Java ServletReplies: 0Last Post: 10-26-2011, 11:21 AM -
Almost got my proxy server working
By SegFault in forum Advanced JavaReplies: 0Last Post: 09-22-2010, 05:32 PM -
proxy server
By guneet singh in forum NetworkingReplies: 1Last Post: 01-18-2009, 01:06 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks