How to run mulitple instances of app, each for unique IP?

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
maxxjr
Newbie
Newbie
Posts: 3
Joined: Wed Jul 29, 2009 1:04 pm

How to run mulitple instances of app, each for unique IP?

Post by maxxjr »

I have a windows application that can listens on an IP address for batch data to process. The application works under WINE. The application does not take advantage of multiple cores of the CPU. I want to configure the Linux PC to listen on four IP addresses (which I know how to do), and then run an instance of the wine app for each IP address. In this way, I can take full advantage of a quad-core CPU.

Does anyone have suggestions/pointers on how to proceed?

Thanks!
John Drescher

How to run mulitple instances of app, each for unique IP?

Post by John Drescher »

On Wed, Jul 29, 2009 at 2:10 PM, maxxjr<[email protected]> wrote:
I have a windows application that can listens on an IP address for batch data to process.   The application works under WINE.  The application does not take advantage of multiple cores of the CPU.  I want to configure the Linux PC to listen on four IP addresses (which I know how to do), and then run an instance of the wine app for each IP address.   In this way, I can take full advantage of a quad-core CPU.

Does anyone have suggestions/pointers on how to proceed?
Wouldn't this be a question for the application's support and not
wine? I mean usually an application will have some configuration on
what ip address it listens to not the os controlling what ip address.

John
austin987
Wine Developer
Wine Developer
Posts: 2383
Joined: Fri Feb 22, 2008 8:19 pm

How to run mulitple instances of app, each for unique IP?

Post by austin987 »

On Wed, Jul 29, 2009 at 1:10 PM, maxxjr<[email protected]> wrote:
I have a windows application that can listens on an IP address for batch data to process.   The application works under WINE.  The application does not take advantage of multiple cores of the CPU.  I want to configure the Linux PC to listen on four IP addresses (which I know how to do), and then run an instance of the wine app for each IP address.   In this way, I can take full advantage of a quad-core CPU.

Does anyone have suggestions/pointers on how to proceed?
Use separate WINEPREFIX's.


--
-Austin
maxxjr
Newbie
Newbie
Posts: 3
Joined: Wed Jul 29, 2009 1:04 pm

Re: How to run mulitple instances of app, each for unique IP

Post by maxxjr »

John Drescher wrote:On Wed, Jul 29, 2009 at 2:10 PM, maxxjr<[email protected]> wrote:

Wouldn't this be a question for the application's support and not
wine? I mean usually an application will have some configuration on
what ip address it listens to not the os controlling what ip address.

John
When I start the application up under wine, it pulls the IP address it listens on automatically from somewhere. When I first tried it, it pulled up a 127.1.0.1 type address, since this is what was in my /etc/hosts file for my hostname. Which I changed the hosts file so that the hostname was associated with the network IP 192.168.1.x, the application pulled this new IP address up.
maxxjr
Newbie
Newbie
Posts: 3
Joined: Wed Jul 29, 2009 1:04 pm

Re: How to run mulitple instances of app, each for unique IP

Post by maxxjr »

austin987 wrote:On Wed, Jul 29, 2009 at 1:10 PM, maxxjr<[email protected]> wrote:

Use separate WINEPREFIX's.

--
-Austin
Hi Austin,

I did a quick read on WINEPREFIX's, and I don't think this will do it. As far as the application goes, it will look like it is running on different PCs. But when it goes to pull the IP address from the host, I think I need something else to tell it to use eth1 vs. eth0, as an example. Otherwise, all instances will pull the default eth0 address.

The WINEPREFIX is probably very necessary to keep each instance of the app from overwriting work data, etc. of other instances, so I think this does get me past an issue I had not realized was coming, yet.

Thanks!
John Drescher

How to run mulitple instances of app, each for unique IP?

Post by John Drescher »

On Wed, Jul 29, 2009 at 2:30 PM, maxxjr<[email protected]> wrote:
John Drescher wrote:
On Wed, Jul 29, 2009 at 2:10 PM, maxxjr<[email protected]> wrote:

Wouldn't this be a question for the application's support and not
wine? I mean usually an application will have some configuration on
what ip address it listens to not the os controlling what ip address.

John
When I start the application up under wine, it pulls the IP address it listens on automatically from somewhere.  When I first tried it, it pulled up a 127.1.0.1 type address, since this is what was in my /etc/hosts file for my hostname.  Which I changed the hosts file so that the hostname was associated with the network IP 192.168.1.x, the application pulled this new IP address up.
So there is no way to set this in the application. You may want to
check to see if it creates a registry entry. Once you get that solved
use Austin's advice about prefixes.

John
Locked