Results 1 to 15 of 15

Thread: Redirect Winsock Connections over Server

  1. #1

    Thread Starter
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088

    Exclamation Redirect Winsock Connections over Server

    You may know the problem of firewalls that allow outgoing but no incoming connections. Would it be possible to have a Server (which accepts connections) redirecting incoming connections so 2 users that are behind firewall could connect to each other?

    I'm using the Winsock control and the Server is currently my own computer, what I need now is to connect 2 users directly so they can share files, play games, etc.

    Any ideas?

  2. #2
    So Unbanned DiGiTaIErRoR's Avatar
    Join Date
    Apr 1999
    Location
    /dev/null
    Posts
    4,111
    You can map ports. You probably don't have a firewall you probably have a NAT. If so you can try and configure the NAT to allow packets to be forwarded.

    You could this this with a program aswell. That is, if you have a known open port, you could accept connections from it and redirect the data to a port that would be otherwised closed.

  3. #3
    The picture isn't missing BuggyProgrammer's Avatar
    Join Date
    Oct 2000
    Location
    Vancouver, Canada
    Posts
    5,217
    so basically make the router be able to forward ports to the NAT address of the computer.

    for example my NAT address is 192.168.1.102, so I would forward ports that I want to get to that address.
    Remember, if someone's post was not helpful, you can always rate their post negatively .

  4. #4
    So Unbanned DiGiTaIErRoR's Avatar
    Join Date
    Apr 1999
    Location
    /dev/null
    Posts
    4,111
    Originally posted by BuggyProgrammer
    so basically make the router be able to forward ports to the NAT address of the computer.

    for example my NAT address is 192.168.1.102, so I would forward ports that I want to get to that address.
    Do you even know what NAT means?

    ...network address translation address of my computer...
    ...network address translation address is...

  5. #5
    The picture isn't missing BuggyProgrammer's Avatar
    Join Date
    Oct 2000
    Location
    Vancouver, Canada
    Posts
    5,217
    hmmmmmmm......... maybe i got mixed up on what it is. whatever just replace what I said by 'the IP address the router assigns you'
    Remember, if someone's post was not helpful, you can always rate their post negatively .

  6. #6
    So Unbanned DiGiTaIErRoR's Avatar
    Join Date
    Apr 1999
    Location
    /dev/null
    Posts
    4,111
    You need two winsock controls.

    One to listen on the open port, which would be the one the remote user connects to you on, the other to connect to your local port that the app is listening on.

    In their dataarrival events send the data to the other control.

  7. #7
    The picture isn't missing BuggyProgrammer's Avatar
    Join Date
    Oct 2000
    Location
    Vancouver, Canada
    Posts
    5,217

    Post

    probably not.
    Remember, if someone's post was not helpful, you can always rate their post negatively .

  8. #8
    The picture isn't missing BuggyProgrammer's Avatar
    Join Date
    Oct 2000
    Location
    Vancouver, Canada
    Posts
    5,217
    Originally posted by DiGiTaIErRoR
    You need two winsock controls.

    One to listen on the open port, which would be the one the remote user connects to you on, the other to connect to your local port that the app is listening on.

    In their dataarrival events send the data to the other control.
    if they are both behind firewall you wouldn't be able to do that. (assuming FOX meant physical firewalls)
    Remember, if someone's post was not helpful, you can always rate their post negatively .

  9. #9
    So Unbanned DiGiTaIErRoR's Avatar
    Join Date
    Apr 1999
    Location
    /dev/null
    Posts
    4,111
    They're not firewalled they're behind NATs.

  10. #10
    So Unbanned DiGiTaIErRoR's Avatar
    Join Date
    Apr 1999
    Location
    /dev/null
    Posts
    4,111
    You can't forward a connection not made to you. Unless you're both networked into the server and you can make your own NAT.

    That would be hard....

  11. #11
    So Unbanned DiGiTaIErRoR's Avatar
    Join Date
    Apr 1999
    Location
    /dev/null
    Posts
    4,111
    By this you'd have to VPN(virtual private network). Win2k can do it.

  12. #12
    So Unbanned DiGiTaIErRoR's Avatar
    Join Date
    Apr 1999
    Location
    /dev/null
    Posts
    4,111
    Or you could call the other person modem to modem.

  13. #13
    The picture isn't missing BuggyProgrammer's Avatar
    Join Date
    Oct 2000
    Location
    Vancouver, Canada
    Posts
    5,217
    filesharing requires at least 1 person not firewalled between the two transfering files.
    Remember, if someone's post was not helpful, you can always rate their post negatively .

  14. #14
    So Unbanned DiGiTaIErRoR's Avatar
    Join Date
    Apr 1999
    Location
    /dev/null
    Posts
    4,111
    You probably have atleast one open port that you can map to a different port. Locally.

  15. #15
    So Unbanned DiGiTaIErRoR's Avatar
    Join Date
    Apr 1999
    Location
    /dev/null
    Posts
    4,111
    You could purchase a shell account and run what you want there.

Posting Permissions

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



Click Here to Expand Forum to Full Width