Link to home
Start Free TrialLog in
Avatar of thai110597
thai110597

asked on

Winsock Ctrl:RemoteIP & RemotePort

I am writing a http server using
winsock control.

Server - I am writing myself.
Client - Browser.
When the client send request to my http server, I need to send back info to the client.

I dunno what is the RemoteIP & RemotePort of the client. How do I find out ? so that I can reply to client.
ASKER CERTIFIED SOLUTION
Avatar of mcrider
mcrider

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mcrider
mcrider

By the way, you don't connect back to the client from the server...


The Client connects to the server and sends the URL request.  The Server Accepts the connect, reads the URL request, writes the information to the connected socket, and then closes the connection.


Cheers!
Thanks for the points! Glad I could help!


Cheers!