Open socket from a specific IP

W

wplatnick

We are writing a monitoring application that needs to open a socket to
a telnet port over a specific ip address, rather than the default for
the system. We have all the IPs bound to the machine. How can I
accomplish this, short of setting the default IP for the system, which
is not something we want to mess with.
 
V

Vadym Stetsyak

When you create socket, you can bind it to specific endpoint, this enpoint
will be used when performing connections to remote host.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top