Listening on an interface
Listening on an interface
- Subject: Listening on an interface
- From: Bernd Löhr <email@hidden>
- Date: Wed, 22 Jan 2003 13:45:16 +0100
Hi,
I'm new to this list, sorry if this has been asked before (I searched
the archives, though).
Under Mac OS X, how can I bind to a specific interface if there are
more than one?
Preferably I want to give the user a list of the active network
configuration ports to chose from. Our IP server should listen on that
interface only, then. Default would be to listen on all.
With the aid of MoreSCF and TN 1145 I got the list of network port
names as well as the BSD port names. To get to the corresponding IP
addresses, I could iterate through the sc list as in TN 1145, but do
the IPs of PPP connections show up when connected? Iterating with
OTInetGetInterfaceInfo won't reveal the interface name.
And: How can I force a PPP connection if I only want to listen? Under
traditional Mac OS opening a provider would automatically connect and
give me an IP address to bind to...
Any thoughts/hints are welcome!
Bernd
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.