socket connection

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi

I work with tcpclient object. I have a problem when i open socket connection on a specificy port. Server that don't work with framework object receive message of connection on my port but receive a port response that not is my port Ex. i open connection on port 4031, server receive on 4031 msg but receive port 1032(ex) where send message at me. Why server don't receive 4031 such as port of response??? Thanks
 
I'm not sure exactly what you are seeing, but TCP works like I think you're
describing.

When you connect to a target service, say HTTP://www.microsoft.com/ you
connect on port 80 on Microsoft's computer. On your local machine, the port
will be "random" and above 1023. So you might see data from your machine,
port 1032, to Microsoft's machine, port 80.

This is by design.

-mike
MVP
 
Back
Top