winsock app works ok on LAN, not receiving from WAN


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: winsock app works ok on LAN, not receiving from WAN

Hybrid View

  1. #1
    Join Date
    Apr 2005
    Posts
    3

    winsock app works ok on LAN, not receiving from WAN

    I'm developing a winsock chat application. It works fine on my LAN, (IP range 192.168.0.X) and the client app connects with no problem to the server thru the LAN, but I can't get it to work with the client app at another location (not in my LAN) trying to connect to my DSL modem's internet IP number

    I have the modem configured to forward the ports my apps are using to my IP number on the LAN on which I am running the server app, (my ISP told me I needed to do this) and my server app's winsock is set to "remote IP = 192.168.0.1" (my DSL modem) and the client app winsock is set to remote ip = my internet IP number.

    When I set the client app's winsock to remote ip=192.168.0.x then it works ok locally between server and client. It's like either the dsl modem is not passing the client link request thru to my server app, or else my server app is not listening at the right place?

    I'm just a beginner to this stuff so forgive me if I'm not explaining this well or if it's a dumb question because I am overlooking something which should be obvious.

    Appreciate your help.

    Thanks

    Danamo

  2. #2
    Join Date
    Nov 2003
    Location
    Portland, OR
    Posts
    8,387
    Try setting the server app's remote IP to the address of the client machine.
    Phil Weber
    http://www.philweber.com

    Please post questions to the forums, where others may benefit.
    I do not offer free assistance by e-mail. Thank you!

  3. #3
    Join Date
    Apr 2005
    Posts
    3
    Mp app is a multiple client chat so the remote IP is unknown until the client requests a connection. However, I did find the solution to my question. Thanks for the reply, though. I appreciate you taking the time to read and try to assist with my question!.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center