How to connect to two servers behind a firewall

Let's say I have a LAN with two independant servers, one at 192.168.2.10 and one at 192.168.2.20
As it is now, I can fwd the 548 port to one server and it works.
Is there a way i could connect to both servers, maybe having one and port 548 and one at 549, so if I connect using the default address, it will connect to server A and to the adress plus the port :549 it will connect to server B
I tried forwarding port 548 to one server and port 549 but for now, my router/firewall complains that I have a port conflict.
What's the simplest way to achieve what I would like.

Oh man, I think I've seen the answer to that in these treads, but it'd be around 20-30 pages back... iirc it would involve editing Hosts' or hppd file... BIG Help I know... but perhaps a real expert will be along shortly!

Similar Messages

  • Problem on connect to two servers with SSL

    Hey all!
    I've got a problem with connecting to two different servers via SSL in one Application. Every Connection works fine on its one via SSL.
    But if i try to initialize a new connection it fails every time.
    My thought is that the problem is the DriverManager. I'm not quite sure how this DriverManager works, but what i know is that it's a single-ton Class and with that maybe stores some parameters from the first connection which didn't get reloaded when trying to make a new connection.
    Here's the way i create the connection ..
        String host="best.host.ever";
        int port="3306";
        String MYSQL_URL="jdbc:mysql://"+this.host+":"+this.port+"/";
        DBName="db_foobar";
        sqlProps = new Properties();
        sqlProps.setProperty("user","foo");
        sqlProps.setProperty("password","bar");
        sqlProps.setProperty("zeroDateTimeBehavior","convertToNull");
        sqlProps.setProperty("useSSL","true");
        System.setProperty("javax.net.ssl.trustStore", trustStore);
        System.setProperty("javax.net.ssl.trustStorePassword", "trustpass");
        System.setProperty("javax.net.ssl.keyStore", keyStore);
        System.setProperty("javax.net.ssl.keyStorePassword", "keypass");
        System.setProperty("javax.net.debug","ssl");
        printDebug("[Konstruktor] : Connecting to "+MYSQL_URL);
        try {
             Class.forName("org.gjt.mm.mysql.Driver").newInstance();
             this.conn = DriverManager.getConnection(MYSQL_URL+DBName,sqlProps);     
            connectionCount++;
            initOK=true;
        //Catch stuff following...Is it possible that the System.properties i'm setting are only readed one time by the DriverManager (if it's readed by the DriverManager at all)?
    So when i initialize a new Object with different System.properties they may not get used again.
    Hopefully somebody has an explanation or a solution for this.
    Besides: If i launch the programm twice it's no problem to have to differen SSL connections at the same time.
    Thanks for reading and in advance for trying to help!

    Yep, it's the standard authentication failure message. (The error code is 1045).
    The Exception which is thrown is a SQLException with the message:
    Access denied for user 'username'@'p54BB743D.dip.t-dialin.net' (using password: YES)
    errorcode: 1045
    The code i'm using runs well with one connection and even with multiple connections as long as not more than one connection are using SSL.
    To explain:
    The user has the possibility to run the application with a user defined data-source (the connection). You can add a new connection and the application will then add a tabbed pane with the same gui but uses the other data source then.
    This runs fine with multiple connections (I managed to work on 3 differen intranet servers and 2 different servers online, one of them using SSL)
    So all together 5 Connections. Now i wanted to add a 6th server with SSL two and thats the point where it crashes. (Both SSL Servers run perfect on their own with my application - only both together doesnt work).
    About that: Class.forName, yes i'm using it every time when i make a new Connection. This is wrong? Could you explain why?
    Anyway thanks for your answers so far!
    Message was edited by:
    Hotkey_ger

  • How to connect the two field which have a diffrent length

    Hi,
           i have two table one is VBRP-VGBEL CHAR 10
           second is                    MKPF-XBLNR CHAR 16
    both are same data means vgbel eq xblnr.
    how to connect these table because when i connect these table it gives me error
    have a same type and length.
    please give me reply soon . Thanks.
    dinesh

    HI
    I GOT THE SAME PROBLEM AT THAT TIME I DONE LIKE THIS
    I THINK IT MAY HELPFULL FOR YOU
    OBJID = 6 CHAR
    SOBID =  40 CHAR
    I GOT THE SAME ERROR WHAT YOU GET
    I NEED ONLY 6 CHAT SO THAT WHY I HAD WROTE THIS LOGIC
    1ST I HAD DECLARED THE SAME STRUCTURE TWICE
    IN FIRST ONE IT IS NORMAL DECLARATION
    IN SECOND ONE I HAD DECLARED THAT 2 FIELDS AS THE SAME LENGTH
    I HAD PUT THAT IN THA BOLD LETTERS
    AND AFTER THAT I HAD LOOPES THAT WORK AREA AND CONVERTED THAT SZE
    REWARD IF USEFULL
    TYPES : BEGIN OF ST_HRP1001,
             OTYPE TYPE HRP1001-OTYPE,
             <b>OBJID TYPE HRP1001-OBJID</b>,
             RELAT type hrp1001-RELAT,
             BEGDA TYPE HRP1001-BEGDA,
             ENDDA TYPE HRP1001-ENDDA,
             SCLAS TYPE HRP1001-SCLAS,
             <b>SOBID TYPE HRP1001-SOBID,</b>
            END OF ST_HRP1001.
    TYPES : BEGIN OF ST_SOBID,
             OTYPE TYPE HRP1001-OTYPE,
             <b>OBJID TYPE HRP1001-OBJID,</b>
             RELAT type hrp1001-OBJID,
             BEGDA TYPE HRP1001-BEGDA,
             ENDDA TYPE HRP1001-ENDDA,
             SCLAS TYPE HRP1001-SCLAS,
             <b>SOBID TYPE HRP1001-OBJID,</b>   
        END OF ST_SOBID.
    SELECT OTYPE
             OBJID
             RELAT
             BEGDA
             ENDDA
             SCLAS
             SOBID FROM HRP1001 INTO TABLE IT_HRP1001
                        WHERE OTYPE = 'D'
                            AND OBJID IN S_OBJID
                            AND BEGDA GE DATE-LOW
                            AND ENDDA LE DATE-HIGH
                            AND ( SCLAS = 'E' OR SCLAS = 'ET' ).
      IF SY-SUBRC NE 0.
        MESSAGE 'NO RECORD FOUND FOR THE GIVEN SELECTION CRITERIA ' TYPE 'E'.
      ENDIF.
    LOOPING TO CONVERT THAT FIELD LENGHT
    <b> LOOP AT IT_HRP1001 INTO WA_HRP1001.
        WA_SOBID-OTYPE = WA_HRP1001-OTYPE.
        WA_SOBID-OBJID = WA_HRP1001-OBJID.
        WA_SOBID-RELAT = WA_HRP1001-RELAT.
        WA_SOBID-BEGDA = WA_HRP1001-BEGDA.
        WA_SOBID-ENDDA = WA_HRP1001-ENDDA.
        WA_SOBID-SCLAS = WA_HRP1001-SCLAS.
        WA_SOBID-SOBID = WA_HRP1001-SOBID.
        APPEND WA_SOBID TO IT_SOBID.
      ENDLOOP.</b>
      SELECT OTYPE
             OBJID
             AEDTM
             UNAME
             DELET
             CANCR
            NCONT
              FROM HRP1026
              INTO TABLE IT_HRP1026
              FOR ALL ENTRIES IN IT_SOBID
                 WHERE OBJID = IT_SOBID-SOBID
                 AND ( OTYPE = 'E' OR OTYPE = 'ET' )
                     AND DELET = 'X' AND
                     BEGDA GE DATE-LOW  AND
                     ENDDA LE DATE-HIGH.

  • How to connect the two virtual machine .

    I installed VM workstation and created two virtual machine .Please suggest me how to connect them internally each other though vm network editor.I want create RAC Setup for practice.

    NAT is the default adapter type in VirtualBox, which will work in almost any configuration and networking environment. Using the NAT adapter, the host system will establish connections on behalf of the guest OS. NAT requires that the corresponding VM guest adapter uses DHCP and cannot be used to provide any services unless you configure port forwarding (>1024) at the VirtualBox VM NAT adapter.
    Bridged networking is the most transparent adapter type, but requires a physical network adapter on the host OS, which is limited depending on the host system and hardware, e.g. wireless. It also requires that the user understands network and routing restrictions of the host system in case of using the interface to communicate between the host and VM. A combination of host-only and NAT may sometimes be necessary to allow the VM to connect to the internet and allow the host to communicate with the VM guest OS.
    Btw, the host-only adapter IP actually works on behalf of the host OS and can be used to allow the VM to access the host system. So if Internet is not required, the NAT or bridged adapter are not required. I'm not sure if many people realize that, since it's not really mentioned in the documentation. So if you use the host-only adapter, simply use the host-only IP instead of the host system real IP to connect the VM to the host OS.
    I also switched to VirtualBox a couple of years ago, mainly because it provides more VM hardware options, is free and because of the ability to manage multiple virtual machines and group them together. I have about 70 virtual machines for testing and evaluating configured on my home computer. I also like the option in VirtualBox to clone a VM based on a Snapshot.
    VMware provides a Virtual Network Editor in VMware Workstation (KB 1018697), which allows to customize any of the existing virtual network adapter or add new ones. The available technologies under any Type 2 hypervisor are very similar between different products:
    http://www.vmware.com/support/ws45/doc/network_configure_ws.html

  • How to connect to two iTunes libraries?

    I want to connect w two itunes libraries on two separate mac laptops. how do i do that?
    Thanks

    Homesharing
    (iTunes advanced menu, enter the same ID and password on both devices)

  • How can I put my program behind a firewall or make it more secure?

    I have a client server program and I was reading through my notes. I had jotted down a recommendation to put it behind a firewall. However, I do not know how to do this in Java at all or even where to begin. How do I even create a firewall in Java?
    I'm also not sure if this is the security I need.
    This program is already running inside a network limited only to certain users. However, this particular program is limited only to two users. Also, the client runs on Unix and Windows machines accesible by many users in our project. I would not know how to create a firewall for just this program and just these two users.
    Right now my program is sorta like the basic client/server program examples given in the Java tutorials. It verifies the IP address of the client but like I said before anyone can be logged into that IP but only two users should be allowed to run the commands.
    Would a firewall even work in this case?

    However, I do not know
    how to do this in Java at all or even where to begin.
    How do I even create a firewall in Java? You don't.
    I'm also not sure if this is the security I need.I don't think so.
    I would not know how to create a firewall for just this
    program and just these two users.A firewall is not for restricting access to particular users of a network. It's for keeping unauthorized people out of the network entirely. What you should do is secure the server (how to do this depends on probably many factors), and use a username and password in the client app to control access. The client contacts the server, passing the credentials, and the server either grants or denies access. It's possible you would want to hash and salt the password, depending on how secure it needs to be.

  • Can't connect to Adobe Servers behind Sonicwall TZ 200

    Since being behind a Sonicwall TZ 200 I can no longer connect to the Adobe servers. We have opened port 80, 443 and it was also suggested that we open ports 1935 and 8080 which we did but we still aren't able to make a connection. If we connect this Mac to a hot spot we can connect fine so we know it's the Sonicwall causing the issue.
    This is a Mac running OS X with no antivirus/firewall on and no proxy settings.
    Does anyone have any suggestions?
    Thanks,

    Thanks for the link John. I have actually read through that thread and a couple of links within it linking to the Adobe troubleshooting page and another thread. Still no success though. Adobe can't seem to figure it out either. I can't imagine what the issue is a Sonicwall is a widely used security appliance/router and our network isn't complex.
    Thanks

  • How run Dbconsole on two servers ?

    Hi,
    I would like to know how run dbconsole on my 2 servers Grid. Today only one server run dbconsole.
    Thanks,
    Guillaume R

    Hi
    It is only running on node1 or Node2 ,but not both if them at the same time :)
    cd $ORACLE_HOME /bin
    then
    emctl start dbconsole
    emctl status dbconsole

  • Connection between Two servers : FM Required

    Dear All,
    I'm doing one report which calls RFC enabled Z function module.
    The function module is connecting to another SAP system through Logical system name.
    If the connection fails, then I need to pass an error message.
    Can anyone please tell me the FM name or way to do it?
    Points will be rewarded for the correct solution.
    Thanks in advance.
    Regards,
    Neeraj

    Hello Neeraj
    RFC-enabled function modules should not raise exception within their coding because otherwise the RFC connection will break down. Therefore, your z-function module should not have any exceptions. Instead collect A/E/X messages and return them - like BAPIs do - in an TABLES or EXPORTING parameter of type BAPIRET2 (or BAPIRETTAB).
    Call your function module like this:
      DATA:
        ld_rfc_failure   TYPE bapi_msg,
        lt_return         TYPE bapirettab.
      CALL FUNCTION 'Z_MY_RFC_FUNC'
        DESTINATION 'rfc destination'
        EXPORTING
        IMPORTING
          et_return = lt_return  " collected messages
       TABLES
       EXCEPTIONS
         system_failure = 1 MESSAGE ld_rfc_failure
         communication_failure = 2 MESSAGE ld_rfc_failure.
      LOOP AT lt_return TRANSPORTING NO FIELDS
                     WHERE ( type CA 'AEX' ).  " A/E/X message
        EXIT.
      ENDLOOP.
      IF ( syst-subrc = 0 ).
    "    error occured -> error handling
      ENDIF.
    The longtext of the RFC failure can be captured using the MESSAGE option.
    Regards
      Uwe

  • Help :Domain controler crash, how to connect to other server behind

    Dear all,
    I get my DC controller server which has crashed. it is server 2008 r2.
    begind it I have an other server which runs virtual machines running TFS and CRM server 2011.
    What is the easier way to get access to my other server as temporary solution for my users ? we have only 3 users.
    I know that I can detached my other server from domaine but then how my users will be able to login the second server by passing the crash DC ?
    Thnaks for your help

    Hi wakefun,
    Thanks for your feedback and sharing. Your time and efforts are highly appreciated.
    Best regards,
    Justin Gu

  • How to check if server is behind a firewall or not.

    Hi Everyone,
    For one of our customer remote sites i need to open some specific ports between the servers.
    For this i need to config the ACL on firewalls.
    Say Source is 192.168.50.x 
           Source is 172.16.10.x
           Source is 172.30.50.x
    Destination is 172.16.10.x
    I do not know deatiled network topology at the remote site.
    I know the servers default gateway and traffic from source server to  to destination goes via few firewalls.
    Need to confirm if i need to track which firewalls traffic flows from source to destination server best way is to remote in to server gateway and
    do the sh ip route 172.16.10.x? and check the next hop device if it is firewall or not?
    Also in some case source and destination server have same subnet so in this case i can assume no ACL is needed as they are behind same network?
    Regards
    Mahesh

    Mahesh,
    If your remote partner is using the same private network addressing as you (172.16.10.0 network) then you will have to use some NAT to change how they appear to your sources. Otherwise they won't be able to distinguish the path to "your" 172.16.10.0 subnet from "theirs". You will also have to NAT your sources in the 172.16.10.0 network to appear as something else to them or else they will have the same problem.
    There a couple of good external sites with examples of how this works. Please refer to this packetu.com posting and this packetpushers one.

  • Two servers (serverSocket) behind the SAME firewal !?l

    Hello !
    I dont know if this is the right forum for this qusetion,
    and maybe the question is really stupid, but ...
    I made a little client/server application, just to
    play around with sockets and serverSockets.
    It works fine, but now i ask myself:
    What happens, if there are two of my servers running on two
    different computers in the SAME LAN behind the SAME
    firewall/internetgateway, and both are listening on the SAME
    port ?
    F.e. if the extern IP of this LAN/(its gateway) is
    204.556.234.123, and a client in the internet is connecting
    to it on the port, on which the two servers behind the firewall
    are listening, WHO'S ANSWERING ?
    (If this port is set to "open and forward" in the firewall)
    The one with the shorter patch-cable ? ;)
    How is it possible for the client to differenciate
    this two servers in that LAN?
    The only logical solution i found is that this two servers
    have to listen on different ports,
    but i think there has to be another explanation and/or solution.
    Do i have to take care about situations like that in my
    server-application ?
    I have the feeling that i have to...somehow.
    OK, you see i dont know much about this...
    i would be very thankful for every hint and explanation.
    Thank you very much,
    greetings,
    huni.

    F.e. if the extern IP of this LAN/(its gateway) is
    204.556.234.123, and a client in the internet is
    connecting
    to it on the port, on which the two servers behind the
    firewall
    are listening, WHO'S ANSWERING ?
    (If this port is set to "open and forward" in the
    firewall)Whichever one the firewall is told to forward it to!
    The two computers running your server have unique addresses on the internal network. The firewall will forward incoming connections to one of those addresses. Maybe it can do some simple "load balancing" by forwarding some connections to one server and some to the other, but still, any particular connection will only go to one server.

  • How should I connect these two AirPort networks?

    Hi all,
    I have had to reset both of my networks; one an AirPort Extreme and the other an AirPort Express. As it stands, the Extreme has a USB printer and a NAS drive connected to it, while the Express is my gateway to the internet. Right now I have to switch networks to either access the internet, or print.
    I'm open to suggestions on how to connect these two networks. My goal is to be able to printer, connect to the internet, and connect to the NAS drive without switching networks.
    Thanks for any suggestions.
    Ed

    One option would be to configure both of your base stations in a Wireless Distribution System (WDS). In this type of configuration, you'll be able to both access the Internet and/or print without having to change wireless networks.

  • How to connect wi-fi connected laptop to the ethernet connected PC??

    Hi, 
    System 1 - PC, connected to the router+modem with ethernet cable, mostly has static IP
    System 2 - Laptop, connected to the router+modem with wi-fi, mostly uses DHCP 
    I want to connect these 2 systems in order to access the shared data & printer of PC in Laptop. 
    I tried to do this by doing the following on my laptop.
    start -> run -> \\<ip address of PC>
    But I got the error that "Windows cannot connect to the \\<ip address of PC>". When I diagnosed it, it showed that "Your computer appears to be correctly configured, but the device or resource (<ip address of PC>) is not
    responding".
    How to connect now two systems?

    Hi,
    Please take a try with the following steps:
    1. Restart the router;
    2. Reconfigure TCP/IP settings, Navigate to :
    Start/
    Control Panel/ View network status and tasks/
    Networking and Internet/Change adapter settings/Local
    Area Connection/Properties./Internet Protocol Version 6 (TCP/IPv6)/Properties
    set both IPv6 and IPv4 to Obtain an IP address automatically, select Obtain DNS servers address automatically, and then click
    OK. 
    3. Run the below command in command prompt with admin rights:
    ipconfig /flushdns
    ipconfig /registerdns
    ipconfig /release
    ipconfig /renew 
    Then try to connect the two machines again.
    Best regards 
    Michael Shao
    TechNet Community Support

  • How to set up NAT for two servers using same port with ASDM ASA 5505

    Hi there,
    We have a new installation of a ASA 5505 and are trying to get some NAT issues straightened out. Here is the scenario: On our internal network, we have two servers running Filemaker Server, a relational database server that clients connect with using port 5003. Our goal is to be able to allow users from the outside to access either of these servers as needed. I know how to set up a simple static NAT rule and matching Access rule in ASDM which would be fine for a case in which only one server using a given port is running on a network, but for simple static rules I seem to be blocked from entering a different translated port number from the orginal port number, which becomes a problem when two servers we need to access from the outside are running software using the same port number.
    What is the simplest way to address this need? I am guessing that I need to set up a scenario like this, where port 5004 (or any arbitrarily choosen unused port, can be used to access the second server:
    Outside user enters   FQDN:5004  and this translates to Database server # 1 as   192.168.1.40:5003
    and
    Outside user enters   FQDN:5003  and this translates to Database server # 1 as   192.168.1.38:5003
    If so, what is the easist way to get this done? Or is there a better what to handle this scenario?
    Thanks in advance,
    James

    I would create two objects and use object NAT
    object network Obj_5004
    host 192.168.1.40
    object network Obj_5004
    nat (inside,outside) static service tcp 5003 5004
    object network Obj_5003
    host 192.168.1.38
    object network Obj_5003
    nat (inside,outside) static service tcp 5003 5003
    Of course you will need to open your outside interface for tcp ports 5003 and 5004 to make this happen

Maybe you are looking for

  • Problem with HP Color laserjet CP1515n !

    Dear anyone, My HP Color laserjet CP1515n is running wilde, because it prints every single page with black stripes on the margin. I have tryed to start the cleaning mode several times, but it does over and over again... Please, hase anybody any exper

  • How to View PDF slideshow created with Adobe Photoshop Album?

    Many years ago during the Windows ME era, I created several short PDF slideshows with software (Adobe Photoshop Album) that included audio.  I saved them to a flashdrive.  I believe I used Adobe Reader 7 to play them years ago.  I am now running Wind

  • How do I get Sign icon is not in the toolbar

    I can't get Sign in the toolbar. I right clicked on the toolbar clicked on file but it does not have Sign listed in the dropdown. Can anyone help me on this. thank you.

  • Sap hr business blue print

    hi all can any one provide me a sap hr  business blue print so that i can practice on that.u can send it to:  [email protected]...........will be thankful to u people.as i am new to software field itself.also can any one suggest me some best books on

  • Just got MBA and Safari cannot establish a secure connection

    MacBook Air 13" running Mavericks using Safari (all brand new).  The proxy server is eSoft on an Instagate 604.  The thing is that my MBP uses Mavericks and is behind the same Firewall and it works just fine.  When I'm not behind the firewall my MBA