Results 1 to 3 of 3
  1. #1
    driiper is offline Member
    Join Date
    Apr 2012
    Posts
    25
    Rep Power
    0

    Default 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.

  2. #2
    driiper is offline Member
    Join Date
    Apr 2012
    Posts
    25
    Rep Power
    0

    Default Re: Creating a basic proxy server

    anyone have any idea regarding this topic?

  3. #3
    Join Date
    Apr 2012
    Posts
    1
    Rep Power
    0

    Default 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

  1. proxy server
    By mahamudsust in forum Networking
    Replies: 3
    Last Post: 03-04-2013, 07:04 AM
  2. Replies: 3
    Last Post: 04-04-2012, 01:38 AM
  3. Proxy Server Development
    By Comediant in forum Java Servlet
    Replies: 0
    Last Post: 10-26-2011, 12:21 PM
  4. Almost got my proxy server working
    By SegFault in forum Advanced Java
    Replies: 0
    Last Post: 09-22-2010, 06:32 PM
  5. proxy server
    By guneet singh in forum Networking
    Replies: 1
    Last Post: 01-18-2009, 02:06 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •