how to remap serial port numbers?
how to remap serial port numbers?
I want to run the same application installed in 2 Wine bottles (using Wibom) at the same time. Only one can run, not both. Because the app needs to access port numbers 10205,10206, etc., I suspect that running 2 of it (even from separate bottles) causes conflicts at the ports. I wonder if there is a way to remap the port numbers through Wine to different Linux port numbers?
Re: how to remap serial port numbers?
First of all those are not serial ports, but a network port (most likely TCP). Second, Wine can't "remap" them if you application opens those ports to listen for incoming connections.cnbiz850 wrote:I want to run the same application installed in 2 Wine bottles (using Wibom) at the same time. Only one can run, not both. Because the app needs to access port numbers 10205,10206, etc.
OK. Thanks.
In order to run independent sessions of Wine, either Wine or the bottle management should have mechanisms to remap the ports. Since Wine already provide some independent mechanisms using the prefixes, and Wibom is just simple wrappers using the prefixes, Wine should consider handling the port remap issue.
Anyone agree, disagree?
In order to run independent sessions of Wine, either Wine or the bottle management should have mechanisms to remap the ports. Since Wine already provide some independent mechanisms using the prefixes, and Wibom is just simple wrappers using the prefixes, Wine should consider handling the port remap issue.
Anyone agree, disagree?
Agree on this part.vitamin wrote: You simply not allowed to open the same port for listening by multiple applications. This holds true on any *NIX system as well as Windows.
However, Wine is not on the same line as the *NIX systems or Windows - it doesn't run by itself like the others. It runs on top of an OS and tries to mimic another OS - a wonderful thing. Since it runs on an OS, it is supposed to handle and avoid any potential conflicts with the underlying OS, right? Port conflict (though perhaps rare) is one such things that need to be handled. What if an app run on Wine somehow uses the same port already in use by an app run in the underlying OS? In those cases, Wine should provide a mechanism (though Wincfg perhaps) for the user to remap those few ports in conflicts.
Then you either can't run this app, or shutdown whatever native app uses this port. You wouldn't be able to run this app on Windows if another app opened the same port.cnbiz850 wrote:What if an app run on Wine somehow uses the same port already in use by an app run in the underlying OS?
Again, Wine is not a sandbox. It does not emulate anything other then win32api. In case you still have questions: http://wiki.winehq.org/FAQ#head-f566a12 ... 13a773c571