Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Winsock Ctrl:RemoteIP & RemotePort

Posted on 2000-02-17
3
Medium Priority
?
333 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 200 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses

670 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