Assigning different IPs to applications running on same machine

I am working on case which needs 10 different threads of a client program with each thread having its own IP address. The problem is that these threads have to run on the same machine and they communicate to a common server (on a different machine) using the TCP/IP Sockets.Is there anyway thru which I can assign unique IP addresses to each of my client thread even through all of them happen to run on the same machine?

All my client threads connect to the server using
Socket sock = new Socket(ipAddr, portNum);
They are already binding themselves to different and unique ports on the client machine. All of them talk to the same server application running on a different machine. The server should identify the client threads by looking at their ip addresses. Now my question was, is there a way through which I can assign different IP addresses to my client threads ?

Similar Messages

  • Problem in creating multiple instance of Jboss running on same machine  ???

    Hi all
    Please tell me steps to create multiple instance of Jboss with diffrent port number.
    Actually i want multiple instance of Jboss with different port number running on same machine.
    I tried with this steps, but it does not work for me.
    In conf/jboss-service.xml i added
       <mbean code="org.jboss.services.binding.ServiceBindingManager"
         name="jboss.system:service=ServiceBindingManager">
         <attribute name="ServerName">ports-01</attribute>
         <attribute name="StoreURL">D:/dev/jboss-4.0.2/docs/examples/binding-manager/sample-indings.xml</attribute>
         <attribute name="StoreFactoryClassName">
           org.jboss.services.binding.XMLServicesStoreFactory
         </attribute>
       </mbean>
       <mbean code="org.jboss.services.binding.ServiceBindingManager"
         name="jboss.system:service=ServiceBindingManager">
         <attribute name="ServerName">ports-02</attribute>
         <attribute name="StoreURL">D:/dev/jboss-4.0.2/docs/examples/binding-manager/sample-bindings.xml</attribute>
         <attribute name="StoreFactoryClassName">
           org.jboss.services.binding.XMLServicesStoreFactory
         </attribute>
       </mbean>But i am getting an exception when i am trying to run jboss server
    16:49:04,656 INFO  [ServiceBindingManager] Using StoreURL: file:/D:/dev/jboss-4.0.2/docs/examples/binding-manager/sample-binding
    16:49:04,750 ERROR [MainDeployer] could not create deployment: file:/D:/dev/jboss-4.0.2/server/default/conf/jboss-service.xml
    org.jboss.deployment.DeploymentException: Trying to install an already registered mbean: jboss.system:service=ServiceBindingMana
            at org.jboss.system.ServiceCreator.install(ServiceCreator.java:70)
            at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:153)
            at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:118)
            at org.jboss.system.ServiceController.install(ServiceController.java:202)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
            at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
            at $Proxy4.install(Unknown Source)
            at org.jboss.deployment.SARDeployer.create(SARDeployer.java:220)
            at org.jboss.deployment.MainDeployer.create(MainDeployer.java:918)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:774)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:738)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:722)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
            at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:121)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
            at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
            at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
            at $Proxy5.deploy(Unknown Source)
            at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:434)
            at org.jboss.system.server.ServerImpl.start(ServerImpl.java:315)
            at org.jboss.Main.boot(Main.java:195)
            at org.jboss.Main$1.run(Main.java:463)
            at java.lang.Thread.run(Thread.java:595)
    Failed to boot JBoss:
    org.jboss.deployment.DeploymentException: Trying to install an already registered mbean: jboss.system:service=ServiceBindingMana
            at org.jboss.system.ServiceCreator.install(ServiceCreator.java:70)
            at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:153)
            at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:118)
            at org.jboss.system.ServiceController.install(ServiceController.java:202)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
            at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
            at $Proxy4.install(Unknown Source)
            at org.jboss.deployment.SARDeployer.create(SARDeployer.java:220)
            at org.jboss.deployment.MainDeployer.create(MainDeployer.java:918)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:774)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:738)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:722)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
            at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:121)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
            at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
            at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
            at $Proxy5.deploy(Unknown Source)
            at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:434)
            at org.jboss.system.server.ServerImpl.start(ServerImpl.java:315)
            at org.jboss.Main.boot(Main.java:195)
            at org.jboss.Main$1.run(Main.java:463)
            at java.lang.Thread.run(Thread.java:595)
    16:49:05,125 INFO  [Server] JBoss SHUTDOWN: Undeploying all packages
    Shutting down
    16:49:05,156 INFO  [Server] Shutdown complete
    Shutdown complete
    Halting VM
    Press any key to continue . . .Please help me on this.
    Thanks in advance

    Then you haven't followed the method correctly. That error is
    addressed specifcally on that site, as that error is the main
    reason for the site. Did you read the note about the "known
    bug" because of the one port that is not included in the
    sample file?
    If you had tried the first method (set up a second IP and
    started both servers with the command line option providing
    an IP) there is no way this error could happen.
    If you followed the second method, and specified a different
    port for every port listed (including the one that is not in the
    sample file per default) then there is, once again, no way that
    this error could happen.
    The error happens on the second server because it is trying
    to bind the same port, using the same address, as the first
    server, which is impossible if you fully implement one of the
    two methods described there.

  • Installation of different versions of GUI clients on same machine

    Hi All,
    Is there any document about how to install different versions of MDM GUI clients on same Machine.
    we have different version of MDM server in Sandbox and Developement environment. I know we can install different versions of GUI Clients by specifying different locations. But i am looking for some standard document / SAP note. Please if anyone has this information, it will be very helpful.
    Thanks and Regards,
    Shiv

    Hi Shiv,
    You can find this information regarding different Version of GUI Clients on same machine from Standard SAP Installation Guide on Page 51
    5.1 Maintaining Multiple Versions of MDM it tells that you can install multiple versions of MDM 5.5 on one host and switch between the versions.This may be useful, for example, when updating the patch level.
    Please refer to SAP Installtion guide,
    https://websmp201.sap-ag.de/~sapidb/011000358700001119842007E
    Also Check SAP Note: 1283687
    Best Regards,
    Mandeep Saini

  • Running two different versions of mac os on  same  machine

    I have canon software that only works in 10.4 wheras I'm on 10.5. Initially I was thinking I could use bootcamp to install 10.4 on the same machine and run the software but then I heard about paralels and thought I might be able to do this. Can I run two different versions of mac osx on the same machine, and if so how easy is it to switch between versions?? Thank you!!

    tmx3 wrote:
    Cool, thanks very much for the advice. If I am running 10.4 on an external is there anything I should bear in mind? Size wise what are the considerations?
    I have 10.4.11 running on a small partition on my TM drive on each of my MBPS. They were and are my Tiger backups when I first installed Leopard. They run, I update them and occasionally use them.
    Just hold down Option key on boot and the Tiger OS shows up. They are clones, created with SuperDuper. CCC works equally as well.

  • Can I have two versions of OSX running on same machine?

    Hi - since upgrading from Snow Leopard to Mountain Lion recently I have run into an unexpected problem (though I'm sure there would have been a warning that I missed). Some of my older applications, such as Adobe Creative Suite version 1, no longer run with the new OS. My plan is to install an additional hard drive in my Mac Pro (2009 dual Xeon version) and go back to my original software (Tiger) and install that on the new drive, then update to Snow Leopard with that software package. I will then, hopefully, be able to install CS1 on that drive.
    Am I likely to encounter any problems doing this? I will effectively have two different OSXs running on the same machine, albeit on differnt drives.
    Thank you in anticipation,
    John Irvine
    Banchory, Scotland.

    The old "pop the DVD in, hold down Option or Command + C and just do a clean install on your new drive doesn't cut it?
    As for SL, it has to be retail, can't be the OEM gray disc from another Mac specific model.
    First, start up your computer from the Mac OS X Install DVD.
    Insert the Mac OS X Install DVD.  After it mounts, choose System Preferences from the Apple () menu.
    Choose Startup Disk from the View menu.
    Select the Mac OS X Install DVD as the startup disk and click Restart.
    About Disk Utility
    http://support.apple.com/kb/HT1452
    http://support.apple.com/kb/HT1553
    http://support.apple.com/kb/HT2055
    http://support.apple.com/kb/TS1901 
    http://pondini.org/OSX/Home.html

  • Can 6.1 and 7.0 run on same machine?

    I have WL6.1 with 5 services/domains running on the same machine. I want to install
    WL7.0 on the same machine and migrate one domain at a time without interrupting
    the others. Is
    this possible? If so, should I install to the same BEA Home directory or use a
    new one? What
    about the licences? I need to make sure 6.1 keeps running while I'm installing
    7.0.

    Nope the only thing you need to worry about is not having them run on the
    same port. Right now on my little old laptop I have running 5.1, 6.0, 6.1
    sp5, 7.0 sp2 and 8.1, plus our latest code line. :D
    cheers
    mbg
    "Sridhar Krishnaswamy" <[email protected]> wrote in message
    news:[email protected]...
    >
    Mark:
    From your posting below, I think we can have multiple versions of the WLSon the
    same machine as long as:
    1. Each WLS version has a different HOME directory and
    2. All Classpath specifications are specified in the Classpath variable inthe
    Startwls.cmd.
    Apart from the above, is there anything more that needs to be done. I aminterested
    in running WLS 7.0 SP2 and WLS 8.1 on the same machine for developmentpurposes.
    The applications deployed on each Server are not expected to interact anyway
    with one another.
    Thanks,
    Sridhar
    "Mark Griffith" <[email protected]> wrote:
    Graham:
    License files are stored in your BEA home, you can intsall to the same
    BEA
    home. You need to follow the instructions:
    http://edocs.bea.com/wls/docs70/install/instlic.html#1036174
    Prior to installing 70 you will need to make a backup copy of the 6.1
    license file, then install, then remerge/update. Servers only check
    the
    license file when starting up or when a new deployment/service is made,
    currently running servers and services/apps will still work fine.
    I am not sure about being able start more than one service at a time
    with
    different versions. I would just start the new domains via the command
    line
    until you have migrated them and then install as a service.
    As for 7.0, if your moving upwards I would go to 8.1, which was a
    hardening
    release on top of 7.0 and despite the numbering that marketing came up
    with,
    from WLS perspective this is a "7.1" release.
    Additionally you should be able to just copy your domains from 6.1 to
    a new
    location, point 8.1 at them and just start. The only issue would be
    application file paths. If they are archives the servers alwaysstage/unjar
    a copy anyway, if they are exploded then you will possibly have issues
    with
    two servers trying to read/write from the same directory. Thus it might
    be
    prudent to also copy your 6.1 applications to a new path and change the
    paths in the config.xml appropriately (unless they are relative).
    cheers
    mbg
    "Graham " <[email protected]> wrote in message
    news:[email protected]...
    I have WL6.1 with 5 services/domains running on the same machine. Iwant
    to install
    WL7.0 on the same machine and migrate one domain at a time withoutinterrupting
    the others. Is
    this possible? If so, should I install to the same BEA Home directoryor
    use a
    new one? What
    about the licences? I need to make sure 6.1 keeps running while I'minstalling
    7.0.

  • 2 Application Servers on Same machine

    Hi
    I have installed 2 Applicaton Servers on same machine for getting dual language Support 'English as well as Arabic'. Both Application Servers have the same Report Server Name, now i want to rename or change the report server name of one application server.
    how can i do?
    Rename Report Server's name
    Thanks
    Najeeb.

    Hi Najeeb,
    Which version of AS you have?.
    I think the url which I sent it to U will help you to solve your problem.
    If you decide to install new Rep. server (version 10g) U can do it on the same server but in another directory. the new one will have different ports than the old one's.
    Cheers,
    Hamdy

  • Web server and apex running on same machine - port 8080 possible conflict

    Hi Guys,
    I have installed Apache Tomcat and currently in the process of installing Oracle 11G in the same machine.
    The tomcat is using port 8080 and I understand from other installs, that APEX uses 8080 as well.
    Is there way after installing Oracle 11G XE database, to shut down APEX so it doesn't conflict with Tomcat's use of 8080? I have no use for APEX at this point want to shut it down if its possible.
    Alternatively, can it be configured to use another port?
    Many thanks.

    You can do either, shut it down or change the port. So sad that you said you "have no use for Apex...". :(
    What gateway are you using for Apex? Is it the EPG, OHS or the Apex Listener? If you're using the EPG then there is a whole command structure/API for that. Here are a couple that you can run from a SQLPlus session:
    SELECT DBMS_XDB.GETHTTPPORT FROM DUAL;
    EXEC DBMS_XDB.SETHTTPPORT(port);
    For example:
    EXEC DBMS_XDB.SETHTTPPORT(8080);
    OR
    EXEC DBMS_XDB.SETHTTPPORT(8181);If you're using OHS then you go to your OHS/Apache directory and find the OPM path and issue your shutdown startup commands from there. If it's the Apex Listener with Glassfish then you go to the Glassfish admin console and shutdown your Apex deployment from there. Specifics I'll leave to you.
    Earl

  • UDP server and client running on same machine

    Hi all,
    I can't get the QuoteServer example to work. I am trying to run both server and client on same machine since I only have one machin available at the moment.
    I am using win xp behind a firewall. Anything that might interfere?
    With some System outs I can see that the server is waiting for request but never getting any...

    Restarted computer and now it works. Are ports locked up if I get an exception in the 'wrong' place?

  • Keeping two different versions of Jdeveloper in a same machine

    Hello All,
    This may be a simple question as i am new to this technology.
    Currently I am having Jdeveloper 10g installed on my machine.
    I am installing Jdev 11g on my machine for SOA Suite installation requirement.
    My question is , is there any problem if i install two different version of the jdev in a same machine because i have some important project done in jdev 10g..
    After installing jdev 11g , will jdev 10 project get hamper?
    waiting for your suggestions
    by
    Aboo

    you can still use the old jdeveloper besides the new one.
    i'm also using several jdev versions atm, don't have any problems

  • Can i run 10g & 11g application URL on same machine?

    Our customer need to run two type of our application on his PC: one is developed by Forms 10g and the second is developed by Forms 11g.
    The problem is that to this day he works with 10g only and had use Java 6 to run it (He run it from IE).
    Now, when he try to run application that is developed by Forms 11g he stacked and application don't run.
    When i install Java 7 on the PC - application that is developed by Forms 11g is working fine, but the application that is developed by Forms 10g don't run.
    How can i run both applications on same PC?

    You can run forms 11g on Java 6, why can you not run both on a relatively recent version of Java 6 (ensuring the Forms 10g is patched to latest might be needed).
    Tony

  • Can FCP 7 and 10 run on same machine?

    Need FCP for past projects, but for new ones is FCP10 a good thing? Can I install them both and run separately for different projects?

    You must install FCP7 first, run all its updates and then install FCPX.

  • How to restrict the Users to access other application URL on same machine?

    We have one Oracle 10g AS server, hostname "abc", this server having two services named "DSS" and "RBL".
    Our requriement is how we can restrict the URL "http://abc.xyz.com:7777/forms/frmservlet?config=rbl" from user access, because both DSS and RBL having same URL.
    Can we change port 7777 for RBL service?
    http://abc.xyz.com:7777/forms/frmservlet?config=dss
    [DSS]
    userid=schema_1/abc123@orcl
    form=DSS_MAIN_MENU.fmx
    width=200%
    height=200%
    separateFrame=true
    lookAndFeel=oracle
    colorScheme=teal
    splashScreen=no
    background=grey
    http://abc.xyz.com:7777/forms/frmservlet?config=rbl
    [RBL]
    userid=schema_1/abc123@orcl
    form=MAIN_MENU.fmx
    width=200%
    height=200%
    separateFrame=true
    lookAndFeel=oracle
    colorScheme=teal
    splashScreen=no
    background=grey
    --------------------------------------------------------------------------

    Anyone can answer.

  • OAS and Apache Tomcat on same machine

    Hi guys,
    I have a server for "Business objects XI/MS SQL server" which uses Apache TomCat 5.
    I want to install RDBMS 10g and Oracle Application server on this machine. Is there any conflict possible?
    What measures I may take to keep both applications running on same machine.?
    thnks in advance

    Besides the obvious things like memory and CPU (load), just make sure that you don't get any port conflicts and you will be ok. (at least, you will be on unix. I don't know much about Windows, so can't help you with that one).

  • LabView 2010 application runs twice as slow in Windows 7

    When our company mandated the replacement of Windows XP PC's, my LabView test application that was compiled in LabView 2010 runs over twice as slow on a Fujitsu Esprimo E710E86+ machine. The application uses a GPIB USB - HS adapter to control an HP 4285 Impedance analyzer whose signals are switched to it using two (2) SCXI chassis that contains five (5) SCXI-1193 switch modules. This chassis uses the USB-1359 communicator.
    On the Windows XP machine that is being replaced (a Dell Optiplex 960), a typical set of measurements takes around 40 seconds to complete. The new Windows 7 machine takes about 100 seconds to do the same set of measurements. Has anyone noted this increase in test time???
    Thank you.
    Rod Johnson
    Test Engineering
    FujiFilm SonoSite Inc.

    Hello Rod,
    Before updating to LV 2013 I'd recommend isolating what components are causing the slowdown or at least trying to eliminate some of the variables - right now there's a new PC, new OS, new physical connections, and perhaps even new hardware, so figuring out which of these is causing the slowdown should be the first order of business.  I've seen issues simlar because USB devices were switched around to different (built-in) ports on the same machine.
    A few things to check:
    -What does this application do?  Are you doing any intensive data manipulation or is this mostly a call-and-response type application?
    -What does your system resource utilization look like on the two machines?  In either case, are you using more or less RAM on one machine or railing one or more CPUs?
    -Do you see the same sort of performance hit on a Windows 7 installation on an Optiplex or similar machine?
    -Did you change drivers when you upgraded to Windows 7? 
    -What NI driver version(s) are/were you using?
    -Does this application log data data to disk or perform any network operations?
    -Have you attempted recompiling the 2010 executable on "new" hardware?  The LabVIEW compiler will optimize for the platform it is being built on and it seems highly likely that the Dell and Fujitsu machines have different processors.  As a note I've never seen recompiling in this fashion result in a 100%+ speedup.
    -Have you taken a look at the machine's I/O traces to see how long the acquisition itself takes?
    -Have you tried moving the USB connections to different ports?  Most desktop PCs nowadays have one hub on the front and one on the back of the machine, although I'm not familiar with Fujitsu desktops.  If the adapters you are using or anything else on the machine is forcing a USB 2.0/3.0 port to 1.0 or something this could be a factor.
    Regards,
    Tom L.

Maybe you are looking for