Solved

Winsock Ctrl:RemoteIP & RemotePort

Posted on 2000-02-17
3
327 Views
Last Modified: 2013-12-26
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.
0
Comment
Question by:thai110597
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
3 Comments
 
LVL 14

Accepted Solution

by:
mcrider earned 50 total points
ID: 2531053
Those properties get set by the system in the socket control that you accept the connection on has that information...


Cheers!
0
 
LVL 14

Expert Comment

by:mcrider
ID: 2531063
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!
0
 
LVL 14

Expert Comment

by:mcrider
ID: 2537722
Thanks for the points! Glad I could help!


Cheers!
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

710 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question