Board index » delphi » How to get IP of connecting client?
Michael Fullerton
![]() Delphi Developer |
Michael Fullerton
![]() Delphi Developer |
How to get IP of connecting client?2006-09-06 05:21:29 AM delphi24 Delphi 5 I have this Internet app that uses Datastead's TVideoGrabber. When another instance of this software connects to the program I need to get the IP address of the connecting machine. How can I get this IP address? Thanks in advance. ___ Free Project Time Tracker for Delphi Developers www.{*word*104}matrix.com/pcdelphi.html |
Remy Lebeau (TeamB)
![]() Delphi Developer |
2006-09-06 07:52:05 AM
Re:How to get IP of connecting client?
"Michael Fullerton" <XXXX@XXXXX.COM>wrote in
message news:XXXX@XXXXX.COM... QuoteWhen another instance of this software connects to the program |
Michael Fullerton
![]() Delphi Developer |
2006-09-06 10:15:31 AM
Re:How to get IP of connecting client?
"Remy Lebeau \(TeamB\)" <XXXX@XXXXX.COM>writes:
Quote
TVideoGrabber. ZoneAlarm for example knows what IP is trying to connect to what program regardless of how it is connecting. ___ Free Project Time Tracker for Delphi Developers www.{*word*104}matrix.com/pcdelphi.html |
Remy Lebeau (TeamB)
![]() Delphi Developer |
2006-09-06 11:32:46 AM
Re:How to get IP of connecting client?
"Michael Fullerton" <XXXX@XXXXX.COM>wrote in
message news:XXXX@XXXXX.COM... QuoteWhat do you mean how is it connecting Quotehow is that relevant anyway? Please show an actual code snippet that demonstrates what you are trying to accomplish. QuoteTVideoGrabber handles all of that. I don't have the source code for QuoteZoneAlarm for example knows what IP is trying to connect to Gambit |
Michael Fullerton
![]() Delphi Developer |
2006-09-06 01:23:39 PM
Re:How to get IP of connecting client?
"Remy Lebeau \(TeamB\)" <XXXX@XXXXX.COM>writes:
Quote
posting here. Again, I am not handling inbound connections, TVideoGrabber is. Quote>how is that relevant anyway? Quote>TVideoGrabber handles all of that. I don't have the source code for Understand? Quote>ZoneAlarm for example knows what IP is trying to connect to Free Project Time Tracker for Delphi Developers www.{*word*104}matrix.com/pcdelphi.html |
Remy Lebeau (TeamB)
![]() Delphi Developer |
2006-09-06 02:35:20 PM
Re:How to get IP of connecting client?
"Michael Fullerton" <XXXX@XXXXX.COM>wrote in
message news:XXXX@XXXXX.COM... QuoteI don't know what you are talking about. Right now I am not provide details about how you are working with the connections in the first place. QuoteThis is why I am posting here. Again, I am not handling QuoteHow could I have a code snippet when I am asking how to do this? QuoteMy code is _completely_ _absolutely_ 100% irrelevant to this. My to the IP addresses is through TVideoGrabber, if it is indeed managing the connections for you. If it does not provide access to the connections, then you have no way to get their information. QuoteWell then, how do I hook directly into the OS's socket stack? Gambit |
Francois Piette [ICS & Midware]
![]() Delphi Developer |
2006-09-06 04:06:05 PM
Re:How to get IP of connecting client?Quote>I mean, where exactly are you trying to obtain the IP address from in the connection established from a remote computer to a program named TVideoGrabber. Or maybe you wrote a Delphi program using the component TVideoGrabber and that component is accepting connection and you want to know the remote IP address for that connection ? Contribute to the SSL Effort. Visit www.overbyte.be/eng/ssl.html |
Michael Fullerton
![]() Delphi Developer |
2006-09-06 09:18:29 PM
Re:How to get IP of connecting client?
"Francois Piette [ICS & Midware]" <XXXX@XXXXX.COM>writes:
Quote>>I mean, where exactly are you trying to obtain the IP address from in the and I want to know the remote IP address for that connection. QuoteContribute to the SSL Effort. Visit www.overbyte.be/eng/ssl.html www.{*word*104}matrix.com/pcdelphi.html |
Francois Piette [ICS & Midware]
![]() Delphi Developer |
2006-09-06 10:36:43 PM
Re:How to get IP of connecting client?Quote>TVideoGrabber. Or maybe you wrote a Delphi program using the component to the winsock handle for the connection. Using the handle and winsock call (getpeername) you can get the remote IP address. Contribute to the SSL Effort. Visit www.overbyte.be/eng/ssl.html |