Results 1 to 4 of 4

Thread: Advice me on this

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2004
    Posts
    9

    Arrow Advice me on this

    Hi, I am new to socket programming. I have created an application in vbdotnet which uses winsock controls, its like a simple sever client application where the server listen waits for the client to send a text. When the server receives the text, it will send it back to the client. When I run the program localy in a network machine, it run smoothly, the server receives the text and send it back to the client. But when I run the server on a remote desktop session, while the client through a local pc which has a DSL connection, the client client can connect to the server but does not receive any data, I noticed when I connect to server (through remote desktop session) my IP address was change to different IP, I guess it uses the IP address of DSL modem.

    I guess when the server (running to remote desktop session) sends back the data, it uses the DSL modem IP and not my local IP.. Do you have any idea how can the data pass through my DSL IP and goes direct to my local IP?? Can you guys advice me on this.

    Thanks! God Bless

  2. #2
    PowerPoster
    Join Date
    Mar 2002
    Location
    UK
    Posts
    4,780
    If the client can connect to the server, then you shouldnt have any problems. The DSL may have a mapping (I use a switch for instance) that diverts certain ports to certain PC's, but if hes connected then that cant be your problem.

    When you connect, do you actually connect, send data, disconnect, then the same to return, connect send data, disconnect ?

    Or, does the client connect and send a message, and you just send one back over the same connection ?

    When the client connects, try just sending text to it like a "hello" in the connected event.

  3. #3

    Thread Starter
    New Member
    Join Date
    May 2004
    Posts
    9
    I was able to connect to the server.. i test the program tru local network.. and it works, hmm i guess your right about switch and mapping, do i have to code it??
    do u have any idea how YM does it.. i mean.. it can receive data directing to my local ip..

  4. #4
    PowerPoster
    Join Date
    Mar 2002
    Location
    UK
    Posts
    4,780
    No, you dont have to code it. The admin for the networks has to setup a path to the client/server for you through the firewall/router. Its completly dependent on yours and remote setup.

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