Conneting Tcp Server from swing

Hello Techies,
I have to connect TCP server from swing. I had developed GUI. Now I have to connect TCP server from swing.
Here question araise where I have to give information about the server details.
Can any body guide me??
Thanks,
Ramu

presently I can say I am having 2 combo boxes, 1 text field and one submit button.
When i click on submit i have to connect the TCP server and get the reply.
How can I do this one.
regards,
ramu.

Similar Messages

  • Connecting TCP server from swing

    Hello Techies,
    From swing application i am trying to connect TCP server. I am able to connect TCP server.
    But I am having problem in action Performed().
    Until i close the Jpanel , the request is not going to the TCP server.
    In my Jpanel, I am having 2 combo boxes, One text field and one button.
    when i click the button this request has to be sent to the TCP server.
    How can i do this one??
    can any body help me.
    Thanks (In advance),
    Ramu

    No body is having answer??

  • Multi-Client TCP Server /w Swing GUI

    Hi everybody,
    i have to develop a Multi-Client TCP Server with a Swing GUI. The GUI mainly consists of a JTable which shows various trace messages from processes running on other computers. As the data needs to be filtered i�m using a custom TableModel derived from AbstractTableModel. I�m creating a new thread for every client that connects as shown in http://java.sun.com/developer/onlineTraining/Programming/BasicJava2/socket.html
    Now every client thread reads data from its TCP connection and puts it into the JTable by calling the method addRow of the model. But i�m getting strange NullPointerExceptions and IndexOutOfBoundExceptions when data arrives (i�m using ArrayList in the model). These exceptions never show in a single-threaded Swing app (i�ve tested this already, so i don�t think it�s a bug in my model), so i think this is a problem with Swing�s thread unsafety? Do you have any hints on how to get away with it? Also general design tips for a Multi-Client TCP Server /w Swing GUI are greatly appreciated.
    Thanks in advance!
    Best regards,
    Disposable_Hero

    Of course, but i don�t think it is the model (as said before it works fine in a single thread swing app)
    Here�s the code:
    public class LogTableModel extends AbstractTableModel{
    private Vector dataVector;
    private Vector filterVector;
    private String[] columnIdentifiers;
    private Vector filteredbyProcess;
    private Vector filteredbyLoglevel;
    private boolean bEnableRefresh;
    /** Creates a new instance of LogTableModel */
    public LogTableModel() {
    dataVector=new Vector(0);
    columnIdentifiers=new String[]{"LogTime","HostName","IP","ProcessName","LogLevel","Handle","PID","TID","LogData"};
    filteredbyProcess=new Vector(0);
    filteredbyLoglevel=new Vector(0);
    filterVector=new Vector(0);
    bEnableRefresh=true;
    public synchronized void enableRefresh(boolean bEnableRefresh){
    this.bEnableRefresh=bEnableRefresh;
    if(bEnableRefresh){
    this.buildIndexListBasedOnFilter();
    public synchronized void addRow(LogLine row){
    dataVector.add(row);
    if(bEnableRefresh)
    this.buildIndexListBasedOnFilter();
    public synchronized void addFilter(Filter filter){
    filterVector.add(filter);
    if(filter.isActive())
    this.buildIndexListBasedOnFilter();
    public synchronized void setFilterActive(String name,boolean active){
    int i;
    for(i=0;i<filterVector.size();i++)
    if(((Filter)filterVector.elementAt(i)).getName().equals(name))
    break;
    Filter tmp=(Filter)filterVector.elementAt(i);
    tmp.setActive(active);
    if(active)
    this.buildIndexListBasedOnFilter();
    public synchronized void setFilterLoglevel(String name,int Loglevel){
    int i;
    for(i=0;i<filterVector.size();i++)
    if(((Filter)filterVector.elementAt(i)).getName().equals(name))
    break;
    Filter tmp=(Filter)filterVector.elementAt(i);
    tmp.setLoglevel(Loglevel);
    if(tmp.isActive()==false)
    this.buildIndexListBasedOnFilter();
    private void buildIndexListBasedOnFilter(){
    filteredbyProcess.clear();
    filteredbyLoglevel.clear();
    applyProcessFilter();
    applyLoglevelFilter();
    if(bEnableRefresh)
    this.fireTableDataChanged();
    private void applyProcessFilter(){
    LogLine line=null;
    Filter filter=null;
    for(int i=0;i<dataVector.size();i++){
    for(int j=0;j<filterVector.size();j++){
    filter=(Filter)filterVector.elementAt(j);
    line=(LogLine)dataVector.elementAt(i);
    if(filter.isActive()&&(filter.getName().equals(line.getProcessName()))){
    line.setHidden(true);
    break;
    else{
    line.setHidden(false);
    if(line.getHidden()!=true)
    filteredbyProcess.add(new Integer(i));
    private void applyLoglevelFilter(){
    for(int i=0;i<filteredbyProcess.size();i++){
    int index=((Integer)filteredbyProcess.get(i)).intValue();
    LogLine line=(LogLine)dataVector.elementAt(index);
    for(int j=0;j<filterVector.size();j++){
    if(((Filter)filterVector.elementAt(j)).getName().equals(line.getProcessName())){
    Filter filter=(Filter)filterVector.elementAt(j);
    if((filter.getLoglevel()&line.getLogLevelAsInt())!=line.getLogLevelAsInt())
    line.setHidden(true);
    else
    filteredbyLoglevel.add(new Integer(index));
    break;
    public synchronized String getColumnName(int columnIndex){
    return columnIdentifiers[columnIndex];
    public synchronized void clearData(){
    dataVector.clear();
    filteredbyProcess.clear();
    filteredbyLoglevel.clear();
    public synchronized int getColumnCount() {
    return columnIdentifiers.length;
    public synchronized int getRowCount() {
    return filteredbyLoglevel.size();
    public synchronized Object getValueAt(int rowIndex, int columnIndex) {
    int iIndex=((Integer)filteredbyLoglevel.get(rowIndex)).intValue();// hier krachts warum???
    LogLine tmp=(LogLine)dataVector.elementAt(iIndex);
    switch(columnIndex){
    case 0:
    return tmp.getLogTime();
    case 1:
    return tmp.getHostName();
    case 2:
    return tmp.getIP();
    case 3:
    return tmp.getProcessName();
    case 4:
    return tmp.getLogLevel();
    case 5:
    return tmp.getHandle();
    case 6:
    return tmp.getProcessID();
    case 7:
    return tmp.getThreadID();
    case 8:
    return tmp.getLogData();
    default:
    return null;

  • I need helping!!! configuring RDP access to my local server from a remote location on my Cisco ASA 5505 Firewall.

    I need helping configuring RDP access to my local server from a remote location on my Cisco ASA 5505 Firewall.
    I have attempted to configure rdp access but it does not seem to be working for me Could I please ask someone to help me modify my current configuration to allow this? Please do step by step as I could use all the help I could get.
    I need to allow the following IP addresses to have RDP access to my server:
    66.237.238.193-66.237.238.222
    69.195.249.177-69.195.249.190
    69.65.80.240-69.65.80.249
    My external WAN server info is - 99.89.69.333
    The internal IP address of my server is - 192.168.6.2
    The other server shows up as 99.89.69.334 but is working fine.
    I already added one server for Static route and RDP but when I try to put in same commands it doesnt allow me to for this new one. Please take a look at my configuration file and give me the commands i need in order to put this through. Also please tell me if there are any bad/conflicting entries.
    THE FOLLOWING IS MY CONFIGURATION FILE
    Also I have modified IP information so that its not the ACTUAL ip info for my server/network etc... lol for security reasons of course
    Also the bolded lines are the modifications I made but that arent working.
    ASA Version 7.2(4)
    hostname ciscoasa
    domain-name default.domain.invalid
    enable password DowJbZ7jrm5Nkm5B encrypted
    passwd 2KFQnbNIdI.2KYOU encrypted
    names
    interface Vlan1
    nameif inside
    security-level 100
    ip address 192.168.6.254 255.255.255.0
    interface Vlan2
    nameif outside
    security-level 0
    ip address 99.89.69.233 255.255.255.248
    interface Ethernet0/0
    switchport access vlan 2
    interface Ethernet0/1
    interface Ethernet0/2
    interface Ethernet0/3
    interface Ethernet0/4
    interface Ethernet0/5
    interface Ethernet0/6
    interface Ethernet0/7
    ftp mode passive
    dns server-group DefaultDNS
    domain-name default.domain.invalid
    object-group network EMRMC
    network-object 10.1.2.0 255.255.255.0
    network-object 192.168.10.0 255.255.255.0
    network-object 192.168.11.0 255.255.255.0
    network-object 172.16.0.0 255.255.0.0
    network-object 192.168.9.0 255.255.255.0
    object-group service RDP tcp
    description RDP
    port-object eq 3389
    object-group service GMED tcp
    description GMED
    port-object eq 3390
    object-group service MarsAccess tcp
    description MarsAccess
    port-object range pcanywhere-data 5632
    object-group service MarsFTP tcp
    description MarsFTP
    port-object range ftp-data ftp
    object-group service MarsSupportAppls tcp
    description MarsSupportAppls
    port-object eq 1972
    object-group service MarsUpdatePort tcp
    description MarsUpdatePort
    port-object eq 7835
    object-group service NM1503 tcp
    description NM1503
    port-object eq 1503
    object-group service NM1720 tcp
    description NM1720
    port-object eq h323
    object-group service NM1731 tcp
    description NM1731
    port-object eq 1731
    object-group service NM389 tcp
    description NM389
    port-object eq ldap
    object-group service NM522 tcp
    description NM522
    port-object eq 522
    object-group service SSL tcp
    description SSL
    port-object eq https
    object-group service rdp tcp
    port-object eq 3389
    access-list outside_1_cryptomap extended permit ip 192.168.6.0 255.255.255.0 object-group EMRMC
    access-list inside_nat0_outbound extended permit ip 192.168.6.0 255.255.255.0 192.168.0.0 255.255.0.0
    access-list inside_nat0_outbound extended permit ip 192.168.6.0 255.255.255.0 object-group EMRMC
    access-list outside_access_in extended permit tcp 69.16.158.128 255.255.255.128 host 99.89.69.334 eq pcanywhere-data
    access-list outside_access_in extended permit udp 69.16.158.128 255.255.255.128 host 99.89.69.334 eq pcanywhere-status
    access-list outside_access_in extended permit tcp 69.16.158.128 255.255.255.128 host 99.89.69.334 object-group RDP
    access-list outside_access_in extended permit tcp 69.16.158.128 255.255.255.128 192.168.6.0 255.255.255.0 eq ftp
    access-list outside_access_in extended permit tcp 69.16.158.128 255.255.255.128 192.168.6.0 255.255.255.0 eq ldap
    access-list outside_access_in extended permit tcp 69.16.158.128 255.255.255.128 192.168.6.0 255.255.255.0 eq h323
    access-list outside_access_in extended permit tcp 69.16.158.128 255.255.255.128 192.168.6.0 255.255.255.0 eq telnet
    access-list outside_access_in extended permit tcp 69.16.158.128 255.255.255.128 192.168.6.0 255.255.255.0 eq www
    access-list outside_access_in extended permit tcp 69.16.158.128 255.255.255.128 host 99.89.69.334 object-group SSL
    access-list outside_access_in extended permit tcp 69.16.158.128 255.255.255.128 192.168.6.0 255.255.255.0 object-group NM522
    access-list outside_access_in extended permit tcp 69.16.158.128 255.255.255.128 192.168.6.0 255.255.255.0 object-group NM1731
    access-list outside_access_in extended permit tcp 173.197.144.48 255.255.255.248 host 99.89.69.334 object-group RDP
    access-list outside_access_in extended permit tcp any interface outside eq 3389
    access-list outside_access_in extended permit tcp host 66.237.238.194 host 99.89.69.333
    access-list outside_access_in extended permit tcp host 66.237.238.194 host 99.89.69.333 object-group rdp
    access-list outside_access_in extended permit tcp any host 99.89.69.333 object-group rdp
    access-list out_in extended permit tcp any host 192.168.6.2 eq 3389
    pager lines 24
    logging enable
    logging asdm informational
    mtu inside 1500
    mtu outside 1500
    icmp unreachable rate-limit 1 burst-size 1
    asdm image disk0:/asdm-524.bin
    no asdm history enable
    arp timeout 14400
    global (outside) 1 interface
    nat (inside) 0 access-list inside_nat0_outbound
    nat (inside) 1 0.0.0.0 0.0.0.0
    static (inside,outside) tcp 99.89.69.334 3389 192.168.6.1 3389 netmask 255.255.255.255
    static (inside,outside) tcp interface 3389 192.168.6.2 3389 netmask 255.255.255.255
    access-group outside_access_in in interface outside
    route outside 0.0.0.0 0.0.0.0 99.89.69.338 1
    timeout xlate 3:00:00
    timeout conn 1:00:00 half-closed 0:10:00 udp 0:02:00 icmp 0:00:02
    timeout sunrpc 0:10:00 h323 0:05:00 h225 1:00:00 mgcp 0:05:00 mgcp-pat 0:05:00
    timeout sip 0:30:00 sip_media 0:02:00 sip-invite 0:03:00 sip-disconnect 0:02:00
    timeout sip-provisional-media 0:02:00 uauth 0:05:00 absolute
    http server enable
    http 192.168.6.0 255.255.255.0 inside
    http 0.0.0.0 0.0.0.0 outside
    no snmp-server location
    no snmp-server contact
    snmp-server enable traps snmp authentication linkup linkdown coldstart
    crypto ipsec transform-set ESP-3DES-MD5 esp-3des esp-md5-hmac
    crypto map outside_map 1 match address outside_1_cryptomap
    crypto map outside_map 1 set peer 68.156.148.5
    crypto map outside_map 1 set transform-set ESP-3DES-MD5
    crypto map outside_map interface outside
    crypto isakmp enable outside
    crypto isakmp policy 10
    authentication pre-share
    encryption 3des
    hash md5
    group 1
    lifetime 86400
    crypto isakmp policy 30
    authentication pre-share
    encryption 3des
    hash md5
    group 2
    lifetime 86400
    telnet timeout 5
    ssh timeout 5
    console timeout 0
    dhcpd auto_config outside
    tunnel-group 68.156.148.5 type ipsec-l2l
    tunnel-group 68.156.148.5 ipsec-attributes
    pre-shared-key *
    class-map inspection_default
    match default-inspection-traffic
    policy-map type inspect dns preset_dns_map
    parameters
      message-length maximum 512
    policy-map global_policy
    class inspection_default
      inspect dns preset_dns_map
      inspect ftp
      inspect h323 h225
      inspect h323 ras
      inspect rsh
      inspect rtsp
      inspect esmtp
      inspect sqlnet
      inspect skinny
      inspect sunrpc
      inspect sunrpc
      inspect xdmcp
      inspect sip
      inspect netbios
      inspect tftp
    service-policy global_policy global
    prompt hostname context
    Cryptochecksum:f47dfb2cf91833f0366ff572eafefb1d
    : end
    ciscoasa(config-network)#

    Unclear what did not work.  In your original post you include said some commands were added but don't work:
    static (inside,outside) tcp interface 3389 192.168.6.2 3389 netmask 255.255.255.255
    and later you state you add another command that gets an error:
    static (inside,outside) tcp 99.89.69.333 3389 192.168.6.2 3389 netmask 255.255.255.255
    You also stated that 99.89.69.333 (actually 99.89.69.233, guessing from the rest of your config and other posts) is your WAN IP address.
    The first static statement matches Cisco's documentation, which states that a static statement must use the 'interface' directive when you are trying to do static PAT utilizing the IP address of the interface.  Since 99.89.69.333 is the assigned IP address of your WAN interface, that may explain why the second statement fails.
    Any reason why you are using static PAT (including the port number 3389) instead of just skipping that directive?  Static PAT usually makes sense when you need to change the TCP port number.  In your example, you are not changing the TCP port 3389.

  • How to Connect to TCP Server in AIR?

    I have a TCP server that apparently is working and is listening for incoming connections:
    package
        import flash.display.Sprite;
        import flash.events.EventDispatcher;
        import flash.events.Event;
        import flash.events.*;
        import flash.events.IOErrorEvent;
        import flash.events.ProgressEvent;
        import flash.events.ServerSocketConnectEvent;
        import flash.net.ServerSocket;
        import flash.net.Socket;
        public class TCP extends Sprite
            private var serverSocket:ServerSocket;
            private var clientSockets:Array = new Array();
            public function TCP()
                try
                    // Create the server socket
                    serverSocket = new ServerSocket();
                    // Add the event listener
                    serverSocket.addEventListener( Event.CONNECT, connectHandler );
                    serverSocket.addEventListener( Event.CLOSE, onClose );
                    // Bind to local port 8087
                    serverSocket.bind( 8087, "127.0.0.1" );
                    // Listen for connections
                    serverSocket.listen();
                    trace( "Listening on " + serverSocket.localPort );
                catch(e:SecurityError)
                    trace(e);
            public function connectHandler(event:ServerSocketConnectEvent):void
                //Thesocket is provided by the event object
                var socket:Socket = event.socket as Socket;
                clientSockets.push( socket );
                socket.addEventListener( ProgressEvent.SOCKET_DATA, socketDataHandler);
                socket.addEventListener( Event.CLOSE, onClientClose );
                socket.addEventListener( IOErrorEvent.IO_ERROR, onIOError );
                //Send a connect message
                socket.writeUTFBytes("Connected");
                socket.flush();
                trace( "Sending connect message" );
            public function socketDataHandler(event:ProgressEvent):void
                var socket:Socket = event.target as Socket
                //Read the message from the socket
                var message:String = socket.readUTFBytes( socket.bytesAvailable );
                trace( "Received: " + message);
                // Echo the received message back to the sender
                message = "Echo -- " + message;
                socket.writeUTFBytes( message );
                socket.flush();
                trace( "Sending: " + message );
            private function onClientClose( event:Event ):void
                trace( "Connection to client closed." );
                //Should also remove from clientSockets array...
            private function onIOError( errorEvent:IOErrorEvent ):void
                trace( "IOError: " + errorEvent.text );
            private function onClose( event:Event ):void
                trace( "Server socket closed by OS." );
    But how do I connect to it? I'm trying to make a multiplayer game, and I want variables and strings to be communicated to each client, but what code do I have to put in to get one of the  clients to connect to the other? Again, it successfully LISTENS for a connection, but I don't know how to get anything to connect to it. Another thing is that I get an error thrown at me when I try to test the standalone SWF file, it only listens for connections when I hit "test movie" in the FLA... Thanks in advance...

    Well, i don't know how to detect your ps3 on your imac, but i know a way to connect your PS3 to you imac and Macbook, it's called Remote Play, this was created by sony some years ago, read this article for more: http://www.tech-recipes.com/rx/7225/playstation-3-use-remote-play-on-any-non-son y-vaio-windows-7-pc-ps3-firmware-3-30/

  • Dear friends i am facing an issue in the hosting of my server from ASA publicly

    i have already assing a public ip addd to the outside interface of the ASA ,My requirement is to configure firewall to host my web server publicly using the public ip not assign to  the outside interface but different subnet,i make every configuration is i have done but i cant ping or connect my web server i can ping the web server from my ASA,but from outside i  cannot reach my webserver.Could anyone help me in this because i am facing problem.
    Below is the configuration of the firewall
    server ip add 10.10.10.4(local,reachable)
    public ip add-78.72.232.66(default gateway)
    sho run configuration of the firewall
    ASA Version 8.2(5)
    hostname TAD-FW
    domain-name tadrees.com
    enable password lpW.MGeEHg0ISQZq encrypted
    passwd 2KFQnbNIdI.2KYOU encrypted
    names
    interface Ethernet0/0
    description Connected to TAD-Router G0/1
    nameif outside
    security-level 0
    ip address 78.72.29.174 255.255.255.252
    interface Ethernet0/1
    description Connected to Cisco SMB Switch G1
    nameif inside
    security-level 100
    ip address 10.15.1.1 255.255.255.248
    interface Ethernet0/2
    shutdown
    no nameif
    no security-level
    no ip address
    interface Ethernet0/3
    shutdown
    no nameif
    no security-level
    no ip address
    interface Management0/0
    nameif management
    security-level 100
    no ip address
    management-only
    banner login ********  TADREES FIREWALL ********
    ftp mode passive
    dns domain-lookup outside
    dns server-group DefaultDNS
    name-server 8.8.8.8
    name-server 84.22.224.11
    name-server 84.22.224.12
    domain-name tadrees.com
    access-list split-tunnel standard permit 10.10.0.0 255.255.0.0
    access-list nonat extended permit ip 10.1.1.0 255.255.255.0 10.10.0.0 255.255.0.0
    access-list nonat extended permit ip 10.10.0.0 255.255.0.0 10.1.1.0 255.255.255.0
    access-list Mename-Access extended permit tcp any host78.72.232.66 eq https
    access-list Mename-Access extended permit tcp any host 78.72.232.66 eq www
    pager lines 24
    logging enable
    logging buffered debugging
    logging asdm debugging
    mtu outside 1500
    mtu inside 1500
    mtu management 1500
    ip local pool sslvpnpool 10.1.1.1-10.1.1.254 mask 255.255.255.0
    no failover
    icmp unreachable rate-limit 1 burst-size 1
    asdm image disk0:/asdm-702.bin
    no asdm history enable
    arp timeout 14400
    global (outside) 1 interface
    nat (inside) 0 access-list nonat
    nat (inside) 1 0.0.0.0 0.0.0.0
    static (inside,outside) tcp 78.722..232.66 www 10.10.10.4 www netmask 255.255.255.255
    access-group Mename-Access in interface outside
    router rip
    network 10.0.0.0
    version 2
    route outside 0.0.0.0 0.0.0.0 78.72.29.173 1
    route inside 10.10.10.4 255.255.255.255 10.15.1.1 1
    timeout xlate 3:00:00
    timeout conn 1:00:00 half-closed 0:10:00 udp 0:02:00 icmp 0:00:02
    timeout sunrpc 0:10:00 h323 0:05:00 h225 1:00:00 mgcp 0:05:00 mgcp-pat 0:05:00
    timeout sip 0:30:00 sip_media 0:02:00 sip-invite 0:03:00 sip-disconnect 0:02:00
    timeout sip-provisional-media 0:02:00 uauth 0:05:00 absolute
    timeout tcp-proxy-reassembly 0:01:00
    timeout floating-conn 0:00:00
    dynamic-access-policy-record DfltAccessPolicy
    aaa-server TAD-AD protocol nt
    aaa-server TAD-AD (inside) host 10.10.10.1
    aaa authentication ssh console LOCAL
    http server enable 444
    http 192.168.1.0 255.255.255.0 management
    http 0.0.0.0 0.0.0.0 outside
    http 0.0.0.0 0.0.0.0 inside
    no snmp-server location
    no snmp-server contact
    snmp-server enable traps snmp authentication linkup linkdown coldstart
    crypto ipsec security-association lifetime seconds 28800
    crypto ipsec security-association lifetime kilobytes 4608000
    telnet 0.0.0.0 0.0.0.0 inside
    telnet timeout 2
    ssh 0.0.0.0 0.0.0.0 outside
    ssh 0.0.0.0 0.0.0.0 inside
    ssh timeout 20
    console timeout 0
    management-access inside
    threat-detection basic-threat
    threat-detection statistics access-list
    no threat-detection statistics tcp-intercept
    webvpn
    enable outside
    no anyconnect-essentials
    svc image disk0:/anyconnect-win-2.5.2014-k9.pkg 1
    svc enable
    tunnel-group-list enable
    internal-password enable
    group-policy sslvpn internal
    group-policy sslvpn attributes
    wins-server none
    dns-server none
    vpn-tunnel-protocol svc webvpn
    split-tunnel-policy tunnelspecified
    split-tunnel-network-list value split-tunnel
    default-domain value tadrees.com
    group-policy DfltGrpPolicy attributes
    webvpn
      svc ask enable default webvpn timeout 30
    username asad password GxozRbsh8Rp9vCkf encrypted privilege 15
    username cisco password HWFflA1bzYiq7Uut encrypted privilege 15
    username naveed password d8KsovrcdE3to7qt encrypted privilege 15
    tunnel-group TAD-SSLV type remote-access
    tunnel-group TAD-SSLV general-attributes
    address-pool sslvpnpool
    authentication-server-group TAD-AD LOCAL
    default-group-policy sslvpn
    tunnel-group TAD-SSLV webvpn-attributes
    group-alias ssl enable
    group-url https://78.93.29.174/ssl enable
    class-map inspection_default
    match default-inspection-traffic
    policy-map type inspect dns preset_dns_map
    parameters
      message-length maximum client auto
      message-length maximum 512
    policy-map global_policy
    class inspection_default
      inspect dns preset_dns_map
      inspect ftp
      inspect h323 h225
      inspect h323 ras
      inspect rsh
      inspect rtsp
      inspect esmtp
      inspect sqlnet
      inspect skinny
      inspect sunrpc
      inspect xdmcp
      inspect sip
      inspect netbios
      inspect tftp
      inspect ip-options
      inspect icmp
      inspect http
    service-policy global_policy global
    prompt hostname context
    no call-home reporting anonymous
    Cryptochecksum:cec976b762f5e1d9d9856eeb4dea4019
    : end

    Solution, give me your number so we can talk about or setup captures on the ASA to confirm that traffic from the Internet is being routed correctly to the ASA and also review logs.
    capture out interface outside match ip any host 78.93.232.66
    capture in interface inside match ip any host  10.10.10.4
    After you try to access the server via the public IP from an Internet client check the captures:
    show capture
    If you see packets in the capture, download them:
    https://10.15.1.1/capture/in/pcap
    https://10.15.1.1/capture/out/pcap
    It will ask you for your credentials to be able to download the file.
    Check logs via ASDM:
    Log into ASDM > Monitoring > logging > Real Time log viewer
    Type in the external IP address of the server and run another test, if you see logs post them

  • Login to Oracle 8i Server from a remote location.

    Hi Experts,
    I wish to connect to Oracle 8i Server at Site 1 from Site 2.
    Situation
    Site 1     -     Oracle 8i on Win 2K. This is behind a firewall FW1. Is in Win NT Domain1.
    Site 2     -     Oracle 8i Client on Win 98. This is also behind (a separate) firewall FW2. Is in Win NT Domain2. There is no oracle instance running at Site 2.
    Also -
    a. There is a secure VPN between Site 1 and 2 (through separate Firewalls. one at each site).
    b. Site 1 and Site 2 use different set of IP-Address and also different set of Subnet Mask.
    c. Both, the Client at Site 2 & Oracle 8i Server at Site 1, are able to ping each other successfully.
    d. As there is no oracle database at Site 2, a Database Link cannot be created.
    At Site 2, I have tried the following -
    1. Installed Oracle 8i Client.
    Configured the tnsnames.ora file.
    The Port used is 1521.
    Tried to connect from SQL*Plus but do not connect.
    2. Installed development version of Oracle Forms 6i (surely after removing Oracle 8i client).
    This also installs SQL*Plus.
    Configured the tnsnames.ora file.
    The Port used is 1521.
    Tried to connect from SQL*Plus but do not connect.
    Tried to connect from Oracle Forms 6i but login fails.
    However, other Win98 clients (of Win NT Domain1) at Site 1 use the same settings of tnsnames.ora file to connect to the Oracle 8i Server.
    3. Changed the IP address (of Win98 client at Site 2) to become a member of Win NT domain1 (same domain as that of Oracle 8i Server).
    Repeated the above steps 1 & 2 but login still fails.
    What more needs to be done?
    Thanks in Advance.
    Lokesh

    Hi Fredrik,
    You r right. But I have its entry in tnsnames.ora file. The entry looks like this -
    My_Service_Name.world =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS =
    (COMMUNITY = tcp.world)
    (PROTOCOL = TCP)
    (Server = Computer_Name_of_Server_having_Ora8i)
    (Host = IP_Add_of_Server_having_Ora8i)
    (Port = 1521)
    (Pipe = ORAPIPE)
    (CONNECT_DATA = (SID = ORCL)
    The same entry exists in the tnsnames.ora file on the local PCs (same office where the Oracle 8i Server is present) at Site 1 and these PCs connect the server without any problem.
    Thanks
    Lokesh

  • Error while connecting to SQL SERVER from OWB

    HI All,
    I got the following error while connecting to SQL SERVER from OWB(10gR2).
    1). Created DSN with (GMSCADA)
    2). tnsnames file is updated with the following information
    GMSCADA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 172.16.60.29)(PORT = 1433))
    (CONNECT_DATA =
    (SERVICE_NAME = SA)
    3). Tried to connect to SQL SERVER frm OWB
    Username: sa
    password: sa
    host: 172.16.60.29
    port: 1433
    service name: GMSCADA
    schema: sa
    I got the following error, when I click Test Connection:
    ORA-28545: error diagnosed by Net8 when connecting to an agent
    Unable to retrieve text of NETWORK/NCR message 65535
    ORA-02063: preceding 2 lines from OWB_3095
    Regards,
    Kumar.

    Hi David,
    What is Gateway, How I have to setup, Please let me know.
    I tried according to the Demo, But still I am facing the same problem. Which system IP I have to put in the host details.
    Can u please let me know.
    Regards,
    Kumar.

  • TCP server stream loses data

    Hi,
    I have a high visibility application that has a bug in it that I'd like some
    sharp minds of NI discussion forum to make a suggestion about.
    The app is on the International Space Station. I have a LV executable on a
    laptop on the ISS that sends TCP and UDP data to a LV executable on an earth-bound
    computer.
    The path is not a standard or "trivial" IP but it is intended to be equivalent to
    a standard IP.  The catch comes when some data bytes are lost en route.
    When this happens, the earth-bound LV says something like "Not enough memory
    to complete operation"
    Here's what we found...
    =======================================================
    The TCP Server (on the ISS) send a TCP data stream with the following format...
    ...LLLLSTART$d1$d2...$dN#llllSUMccccENDLLLLSTART...
    where
        * LLLL is a 32bit binary integer with the number of bytes in the following packet beginning with the text string START and ending with the text string END.
        * $, #, START, SUM, and END are delimiters.
        * d1, d2, ... dN are text string data values.
        * llll is a text string with the decimal number of bytes beginning with the text string START and ending with # symbol.
        * cccc is a text string with the decimal number checksum of the bytes beginning with the text string START and ending with # symbol.
    The TCP Client (on earth) reads 4 bytes as LLLL, then reads LLLL bytes (usually about 85 bytes) as the packet beginning with the text string START and ending with the text string END.
    The error comes when the LLLL data is lost, so the TCP Client reads four bytes (probably S,T,A,and R) as LLLL, which convert to a number that is very large, then reads LLLL bytes (maybe 50M) but this read fails because there is not enough memory to read that much data.
    The fix entails ensuring that LLLL is a reasonable size (like 20 to 200) and ensuring that the data packet begins with START.  The difficulty is how to restructure the code to reset the packet loop when LLLL is out of bounds or when that START header is not present.
    =================================
    My quandary is that in LV, I can't see what's going on in the TCP Server or
    TCP Client vis.
    Any suggestions will be appreciated.
    JIM
    Solved!
    Go to Solution.

    I would look at configuring the Nagle Algorithm and/or Delayed ACK options on your remote and earth-bound stations.
    Do LabVIEW TCP Functions Use the Nagle Algorithm?
    TCP Performance problems caused by interaction between Nagle's Algorithm and Delayed ACK
    From wikipedia:
    Applications such as networked multiplayer video games expect that actions in the game are sent immediately, while the algorithm purposefully delays transmission, increasing bandwidth at the expense of latency. For this reason applications with low-bandwidth time-sensitive transmissions typically use TCP_NODELAY  to bypass the Nagle delay.
    Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
    If you don't hate time zones, you're not a real programmer.
    "You are what you don't automate"
    Inplaceness is synonymous with insidiousness

  • Can access a remote server from all locations except from my house

    This is a very weird problem.
    My home ISP is Xplornet. This is a rural "fixed wireless" set-up (antenna on the roof connected to the Xplornet modem). The Xplornet modem is connected to a Belkin router. The router connects wirelessly to my laptop.
    The remote server (the office server) is connected to an Apple airport. The ISP is Bell, and we have a static IP.
    Before we moved, I was with Rogers (cable Internet service). While with Rogers, I could connect remotely to my office server using the AFP protocol.
    Now, here's the weird problem: Now that I am with Xplornet, I can connect to my server remotely from any location EXCEPT my house. I can go to a Starbucks and connect to my server. I can go on vacation in the U.S. and use the local WiFi to connect to my server. But I CANNOT connect from my house to the remote server.
    I have spoken to Xplornet and they say it's an Apple problem (which is what every non-Apple tech always seems to say). Or, perhaps, they say, it's the local dealer (Sentel Communications).
    Sentel says I need to pay for a static IP for my home (Huh?). Why would I need to pay for a static IP at home just so I can connect OUT to a remote server?
    Is this somehow related to the Belkin router not letting me "out"?
    Any thoughts and advice would be greatly appreciated.

    Thanks for responding, Bob.
    Below is the result of my Ping attempt, and port scans. I scanned 548, and 5003, which I use for FileMaker (which works fine from home), I don't use screen sharing. (I can confirm that both 548 and 5003 are open on Airport on the host machine.)
    So, from my home (remote) location, here's what I get (IP: 74.xx.xxx.xx):
    --- 74.xx.xxx.xx ping statistics ---
    10 packets transmitted, 10 packets received, 0% packet loss
    round-trip min/avg/max/stddev = 57.126/91.371/185.774/45.549 ms
    Scan of port 5003
    Port Scan has started ...
    Port Scanning host: 74.xx.xxx.xx
               Open TCP Port:           5003                    fmpro-internal
    Port Scan has completed ...
    Scan of port 548
    Port Scan has started ...
    Port Scanning host: 74.xx.xxx.xx
    Port Scan has completed ...
    So, 5003 is OK, 548 is not. I have to conclude this is related to my home ISP in some way?
    Unfortunately, the host server is running 10.3 (don't ask), which is not supported by Logmein. (I do use Logmein for a Windows machine on the same network, and I can connect to one area of the server via the PC, but not to the part I need, which might be the subject of a future thread.)
    Regardless, being able to connect to my work server remotely from every location EXCEPT from my home is infuriating.
    I just saw this thread about an ISP that has blocked port 548, although I always assumed the ports had to be open on the host side, but maybe not? (I have to confess, I do find the port stuff confusing.)
    If my home ISP blocks 548, then I guess that would prevent me from remotely accessing the server from home?
    If that is the case, is port 548 the only AFP option?

  • No tcp connection in of tcp server

    I am trying to make labview program to replace a java program on a pc(192.168.1.88).
    The first step is the program will start a tcp server, then a client(192.168.1.44) will connect in. The java program works fine, but my program all the time waiting and no connection in.
    I tried wireshark. When java program receive the connection, it only give 4 lines, my program got many lines and no connection as attached.
    Any suggestion, thank.
    Solved!
    Go to Solution.
    Attachments:
    ss.png ‏134 KB

    Showing some relevant section of the Java program source would probably help. Or from the client program. There might be a number of things. As to the wireshark log, all those entries in there are from many things, which could be in some ways related to LabVIEW but none but one line are related to your actual problem. And looking at your example you posted later, you should not let the listen socket get closed right away. Think dataflow!Another recommendation since you are not using the address information anyhow, set the resolve remote address to false. It could add a huge delay accepting the incoming connection request, since it will cause a name resolution request on your network which will possibly timeout because of no DNS server being available, and even if you have a DNS server it is not clear if it will contain a name record for that device.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Can we stop shared server from client m/c

    Hi all,
    Can we stop Oracle Shared and Dedicated server from Client Machine if i am connecting through SYSDBA.
    Thanks
    Vipin

    > Can we stop Oracle Shared and Dedicated server from Client Machine if i am
    connecting through SYSDBA.
    Yes. No.
    Yes, you can stop shared server. Simply decrease the shared server pool to zero. (see below for details)
    No, you cannot stop a dedicated server as "The Thing" that creates dedicated server connections is the Listener. So you will need to stop that.
    # stop shared server:
    SQL> show parameter shared_servers
    NAME TYPE VALUE
    max_shared_servers integer 20
    shared_servers integer 10
    SQL> alter system set shared_servers=0 scope=memory;
    System altered.
    # now attempt a shared server connection
    /home/billy> sqlplus scott/tiger"(DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL=TCP)(HOST=dev)(PORT=1521))) (CONNECT_DATA = (SID=dev) (SERVER=shared)))"
    SQL*Plus: Release 10.2.0.1.0 - Production on Wed Sep 5 12:21:06 2007
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    ERROR:
    ORA-12519: TNS:no appropriate service handler found
    # start the shared server (in the SYSDBA session)
    SQL> alter system set shared_servers=10 scope=memory;
    System altered.
    # now attempt a shared server connection
    /home/billy> sqlplus scott/tiger@"(DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL=TCP)(HOST=dev)(PORT=1521))) (CONNECT_DATA = (SID=dev) (SERVER=shared)))"
    SQL*Plus: Release 10.2.0.1.0 - Production on Wed Sep 5 12:21:17 2007
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
    With the Partitioning and Data Mining options
    SQL>

  • Can't access weblogic server from internet but can from intranet

    Hopefully this isn't the wrong place to post but I've searched through many many
    newsgroups to figure out where to post this but can't find a specific enough one.
    I've recently run into a problem with my weblogic server in that it can not be
    accessed from the internet now. This was all working several weeks ago, when
    I had the wl server listening for SSL communications on port 7002. I could access
    the server from both within our corporate intranet (kind of) as well as access
    it from the internet. I say kind of for the intranet in that when I chose to
    setup SSL on the the wl server, I couldn't get port 7002 to communicate through
    our proxy server. After a little research I determined that it would be best
    to communicate on the default SSL port of 443. After switching to 443, I didn't
    need to bypass the proxy any longer, when accessing from within intranet, but
    now couldn't access the server from the internet. The wl server is behind a firewall,
    but I had the network administrators open up port 443 on the firewall. They ran
    a network sniffer and determined that the wl server is sending a TCP FIN packet
    immediately following the last ACK packet in a TCP session establishment. I don't
    really understand what that all means, but it seems really strange that everything
    works great when inside the intranet and I don't get any TCP FIN packets sent
    from the server, but when you try to communcate through the firewall you do.
    Does anyone have any insight into this issue? something else I could look at.
    The network administrators are basically saying it's the webserver that needs
    configuration (even though it worked great in the past when listening on port
    7002 instead of 443). PLEASE HELP!!!

    Got it.  This thread helped!
    Thanks!
    https://discussions.apple.com/thread/3193444?tstart=60

  • Connecting to network SQL Server from SQL Developer

    Hi All,
    I am trying to connect to network SQL Server from SQLDeveloper but I am unable to connect( I am getting could not connect to SQL Server...). I have searched many sites but could not find the solution. I am giving HostName as MachineName\InstanceName and keeping the port as 1433.
    Can anyone explain how that connection string should be given.
    Thanks.

    From help with additional comments
    Host Name: Host system for the Microsoft SQL Server or Sybase Adaptive Server database.
    E.g., sybase.myCompany.org (DNS name or IP address)
    Port: TCP/IP Port on which Microsoft SQL Server or Sybase Adaptive Server will listen.
    As mentioned by others, need to know how server is configured. Common values: 1433, 5000
    Retrieve Database: Name of the Microsoft SQL Server or Sybase Adaptive Server database.
    Once the other data is correct, press this to populate list box and select which database you want associated with this connection. E.g., pixar, pubs2, etc.
    Brian Jeffries
    SQL Developer Team

  • Modbus TCP server/slave implementation

    Does anybody have experience to implement a modbus server or slave application? My computer needs to communicate with a PLC. The configuration is: computer is TCP server or slave, PLC is TCP client or master. Computer to write input registers for PLC to read. Computer read holding registers from PLC. Cannot find any labwindows examples.
    Thanks a lot.

    Thank you all for the replies. Most the links are for modbus tcp client (master) instead of modbus server (slave).
    Now I am trying to use a modbus slave activeX control (trial version) from Automated Solutions Inc: http://www.automatedsolutions.com/products/modbusslave.asp.
    I created an instrument driver using Create ActiveX Controller wizard. I can get a correct object (modbusHandle) with the first line below (status = 0). But the second function (set a property) gives negative status return (status = -2147418113).
    status = ASMBSLVLib_New_DASMBSLV (NULL, 1, LOCALE_NEUTRAL, 0, &modbusHandle);
    status = ASMBSLVLib__DASMBSLVSetDataMode (modbusHandle, NULL, ASMBSLVLibConst_DATA_MODE_MB_TCP);
    Did I create the activeX control correctly? Automated Solutions told me that the ActiveX control is a windowless control. It's a runtime control. Is it a problem?
    Thanks in advance.
    jzhu0000.

Maybe you are looking for