Solved

Winsock Ctrl:RemoteIP & RemotePort

Posted on 2000-02-17
3
329 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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
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 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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses
Course of the Month9 days, 3 hours left to enroll

615 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