Hi all
I have a network question: How can i retrieve the remote adress of a network client? This is the adress, thru which the client is connected to the server. I need to retrieve this adress on the client side.
Example:
[Server: 192.168.0.1] <--> [Client: 192.168.0.2]
the remote adress of the client would be 192.168.0.2 . The problem is, that if the client has more than one IP adress i don't know which one is the right one.
Thanks for any help! merendo
Getting the remote IP-Adress
Getting the remote IP-Adress
The truth is never confined to a single number - especially scientific truth!
Is this what you need? http://www.purearea.net/pb/CodeArchiv/I ... emoteIP.pb
P4 2.4GHz, 256 MB, WinXP Pro, onboard video&audio.
The Programmer's Drinking Song:
"99 little bugs in the code,
99 little bugs.
Fix one bug, recompile
100 little bugs in the code."
The Programmer's Drinking Song:
"99 little bugs in the code,
99 little bugs.
Fix one bug, recompile
100 little bugs in the code."
strange question but... what would you need it for?
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB - upgrade incoming...)
( The path to enlightenment and the PureBasic Survival Guide right here... )
( The path to enlightenment and the PureBasic Survival Guide right here... )
The code works on the client side as well. Just run it after connecting to the server, and store put the connection ID in the cnid var...
P4 2.4GHz, 256 MB, WinXP Pro, onboard video&audio.
The Programmer's Drinking Song:
"99 little bugs in the code,
99 little bugs.
Fix one bug, recompile
100 little bugs in the code."
The Programmer's Drinking Song:
"99 little bugs in the code,
99 little bugs.
Fix one bug, recompile
100 little bugs in the code."

