G
Guest
I am using a toolkit, part of which creates TCP/IP connections using a
function 'Connect(<local IP>,<local Port>,<Remote IP>,<Remote Port>)'. This
function's signiture looks very similar to the Socket object signiture. If
you pass a blank local IP it will get the IP for the DEFAULT interface, which
is not always the desired IP. How can I get the specific Local IP from a
Remote IP?
EX:
Interface 1: 10.1.1.1
Interface 2: 192.168.1.1
..Connect("",0,"10.1.1.2",104)
Sets local ip to 10.1.1.1
..Connect("",0,"192.168.1.2",104)
Sets local ip to 10.1.1.1
I would like to pass the Local IP form the remote IP instead of the blank
string. Any help would be great!
~rlc
function 'Connect(<local IP>,<local Port>,<Remote IP>,<Remote Port>)'. This
function's signiture looks very similar to the Socket object signiture. If
you pass a blank local IP it will get the IP for the DEFAULT interface, which
is not always the desired IP. How can I get the specific Local IP from a
Remote IP?
EX:
Interface 1: 10.1.1.1
Interface 2: 192.168.1.1
..Connect("",0,"10.1.1.2",104)
Sets local ip to 10.1.1.1
..Connect("",0,"192.168.1.2",104)
Sets local ip to 10.1.1.1
I would like to pass the Local IP form the remote IP instead of the blank
string. Any help would be great!
~rlc