From: web2ed@... (Edward Wilson) Date: 2003-01-06T01:58:12+09:00 Subject: Re: Using TCPServer with multiple network cards I tried this before but it doesn't work. TCPServer binds to the first network card e.g. eth0; Java has this same problem. Changing the "ip string" doesn't change the network card...at least from my experience. The problem I'm having is that I can only bind to the first network card in my hardware array. I have to reassign IPs to my hardware; what I want to be able to do is pass different parrameters to TCPServer or perhaps it's super class and override TCPServer to be able to bind to `any of several network cards' I may have configured on a given machine. Each network card has it's own IP, but like I said, TCPServer appears to have a limitation of only being able to see the first network card, so it only works if the IP you pass it is the *same* as your first network card. -- ed Brian Candler wrote in message news:<20030104232156.GA9436@uk.tiscali.com>... > On Sun, Jan 05, 2003 at 05:56:30AM +0900, Edward Wilson wrote: > > How can one use TCPServer with more than one network card; e.g. how > > can one choose which network card to bind to? > > It's the first argument to the constructor... > > server = TCPServer.new('192.168.0.1', port) > > See: http://www.rubycentral.com/book/lib_network.html