Alaska Software Inc. - Outgoing IP
Username: Password:
AuthorTopic: Outgoing IP
Stephan KoenigOutgoing IP
on Thu, 19 Nov 2009 07:59:09 -0500
Hi,

when I open a connection with SocketOpen(), send a few bytes with 
SocketSend() and get a response with SocketRecv(), how can I establish, what 
IP of my system is being used if my system has more than one IP ?

Thanks

Stephan
Stephan KoenigRe: Outgoing IP
on Thu, 19 Nov 2009 20:32:28 -0500
I figured it out. Pablo point the direction.

It will not work with SocketOpen(), as this includes SocketNew() and 
SocketConnect()

But the sequence
Stephan KoenigRe: Outgoing IP
on Thu, 19 Nov 2009 20:37:28 -0500
(to fast ...)

I figured it out. Pablo point the direction.

It will not work with SocketOpen(), as this includes SocketNew() and 
SocketConnect()

But the sequence
SocketNew()
SocketBind()
SocketConnect()

will work. With SocketBind() you can determine the local IP that's being 
used.

Stephan