Results 1 to 6 of 6

Thread: Winsock over the internet

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 2010
    Location
    Obuasi
    Posts
    151

    Resolved Winsock over the internet

    Can anyone help me with this question:
    can a winsock client application connects to its server which is not within the same local network?

  2. #2
    Fanatic Member FireXtol's Avatar
    Join Date
    Apr 2010
    Posts
    874

    Re: Winsock over the internet

    Yes, Winsock works over WAN(the Internets).

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jan 2010
    Location
    Obuasi
    Posts
    151

    Re: Winsock over the internet

    Quote Originally Posted by FireXtol View Post
    Yes, Winsock works over WAN(the Internets).
    So it means i can send you a copy of my client application and you can connect from there. i did tried this yesterday with a friend who's about 300km away from me and it never work out.

  4. #4
    Fanatic Member FireXtol's Avatar
    Join Date
    Apr 2010
    Posts
    874

    Re: Winsock over the internet

    Firewalls, NATs, etc....

    You have to ensure ports are being forwarded from the external gateway(typically a router/modem) in order to receive incoming connections. One easy way is to set your local IP to the DMZ, and this will forward all traffic to your local IP.

    A local IP is just that(like 192.168.0.*, or 10.0.0.*...), then a router or NAT is responsible for routing traffic from your WAN IP to your local adapters.

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Jan 2010
    Location
    Obuasi
    Posts
    151

    Re: Winsock over the internet

    Quote Originally Posted by FireXtol View Post
    Firewalls, NATs, etc....

    You have to ensure ports are being forwarded from the external gateway(typically a router/modem) in order to receive incoming connections. One easy way is to set your local IP to the DMZ, and this will forward all traffic to your local IP.

    A local IP is just that(like 192.168.0.*, or 10.0.0.*...), then a router or NAT is responsible for routing traffic from your WAN IP to your local adapters.

    if you have any client application setup kindly send it to me so i can try to connect from here

  6. #6
    Fanatic Member FireXtol's Avatar
    Join Date
    Apr 2010
    Posts
    874

    Re: Winsock over the internet

    Here's a small program I wrote which allows you and a friend to establish a little shared virtual white board, where you can both draw whatever you like.

    Sure, I'll PM you my IP, if you like, just drop me a message when you're ready.

    I release it to the public domain, without license. Enjoy.
    Attached Files Attached Files

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