#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2004
    Posts
    24
    Rep Power
    0

    Question Can Delphi allow a connection through an application??


    Hi!
    I have to realize a connection between a remote user and a router; in the pc that the user uses must be installed a client application that forwards the request through internet to another pc where is installed the server application; the server application forwards the request to the router that is in its LAN.
    So my question is: how can I do to realise the server application??
    Can you give me some code example??
    Thank You!!
    Christian
  2. #2
  3. Banned ;)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Nov 2001
    Location
    Woodland Hills, Los Angeles County, California, USA
    Posts
    9,625
    Rep Power
    4247
    This isn't exactly a trivial program, but Delphi makes it pretty easy to code. Here's something I cooked up. Enjoy!
    Attached Files
    Up the Irons
    What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
    "Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
    Down with Sharon Osbourne

    "I wouldn't hire a butcher to fix my car. I also wouldn't hire a marketing firm to build my website." - Nilpo
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2004
    Posts
    24
    Rep Power
    0

    Thank You, But I Don't Have TClient & TServer!


    When I run the program, delphi doesn't recognize the TClientSocket
    and the TServerSocket classes: how I can install them??
    Thank You Again Guy!!!
  6. #4
  7. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2004
    Posts
    24
    Rep Power
    0

    I solved the class trouble - now another one!


    Scorpion I solved the problem by installing delphi6!!
    Now the application works!
    Now I'm testing the connection between my client application and the "forwardin 0.0.1" that you sent me; in my client application there is a window that shows what I send and what I receive from the server: the problem is that doing a connection to your forwarder I can't receive anything, in particular I can't receive anything from the address forwarded by "forwarding 0.0.1"!
    This is very important, because my intention is to make a possible a connection to a remote device through a server application, so is very important that my client's window shows what I receive and I send!!
    Thank You for the patience!!
    Christian
  8. #5
  9. Banned ;)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Nov 2001
    Location
    Woodland Hills, Los Angeles County, California, USA
    Posts
    9,625
    Rep Power
    4247
    Yes, I know that. I made the sample code only work in ONE direction, but it should be fairly easy for you to add code to send the data the other way as well.
    Up the Irons
    What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
    "Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
    Down with Sharon Osbourne

    "I wouldn't hire a butcher to fix my car. I also wouldn't hire a marketing firm to build my website." - Nilpo
  10. #6
  11. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2004
    Posts
    24
    Rep Power
    0

    can you help me??


    Scorpion, if I use the same code to send info in the other direction is right?? If not, please send me examples!!!
    Thyank You!!

IMN logo majestic logo threadwatch logo seochat tools logo