Solved

Winsock Ctrl:RemoteIP & RemotePort

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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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…
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…

744 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now