"Bind" applications to a specific network interface?

nurfen

macrumors member
Original poster
Jan 21, 2007
73
0
I'm currently using dual ethernet connections (one of them a USB Ethernet adapter) on my Mac Mini, which I've chosen to forward different ports to, so one handles FTP, the other one handles the web server, etc.

Now I'm wondering if it's possible in OS X (10.5.8, unfortunately it's a G4) to "bind" a specific application to one of the network interfaces, so that it only utilizes that one?
 

belvdr

macrumors 603
Aug 15, 2005
5,657
1,024
No longer logging into MR
For daemons, such as httpd, you can bind them to specific addresses. In Apache, you can use the Listen directive.

Of course, it's not really going to hurt anything to listen on all interfaces if DNS is setup properly so all requests go to a particular interface.
 

RedTomato

macrumors 601
Mar 4, 2005
4,042
336
.. London ..
That's interesting. I suppose if you had 4 usb ports and a USB-ethernet convertor for every one, you could have 5 ethernet connections.

If you had 4 USB-ethernet convertors all connected to a USB hub connected to a single USB port, would that also work? (and if it was 4 x 100mb ethernet, they'd probably run at usual 100BT speeds if fed by something like a SSD anyway) Not quite sure how the interfacing software would deal with that though.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.