Get TCP connections to IP

Hi, is there a WMI or code that can get me the number of the current TCP connections from 1 server to another one?
Thanks

You can use the good old Netstat.exe  to get the connections established between your PC and others.
Maybe you can use psexec/PSRemoting to execute the netstat.exe and get the result back and parse the result.
 Hope this helps
Knowledge is Power{Shell}.

Similar Messages

  • ATA- Getting "TCP connect err: -33"

    In my setup, from G/w I am able to ping the ATA, but I am not able to make any outbound calls from the Analog phones ( not tried the inbound yet).
    I ran prsrv.exe and found the following error
    Connect to <0xdce08005 1720>..
    12:00;0,0,0,0,
    12:30;0,0,0,0,
    TCP connect err: -33
    SCC:ev=7[0:0] 3 0
    [0]StartTone 2
    According to the document on cisco site
    http://www.cisco.com/en/US/products/hw/gatecont/ps514/products_configuration_example09186a0080094adf.shtml
    it is a IP connectivity issue. But from G/w I am able to ping the ATA.
    Can you suggest what problem it could be?
    Regards..

    since you can ping from the gateway its not a connectvity issue with the router, may be your router is not properly configured to route the call out , check for the router configuration.

  • I sometimes get Error 42 when opening a TCP connection - how can I fix this ?

    In my Labview application I am opening a TCP connection in an identical way to the Data Client example. I am using a direct connection to external equipment using an ethernet crossover cable. The error occurs on at least 2 different PCs.
    The error can occur regardless of whether anything is connected to the ethernet port of the PC.
    The only way I have found to clear the error is to power down the PC and restart with a connection to the office LAN. Then I can swap back to the crossover cable and talk to the remote equipment once again, ...unitl the next time the error occurs.
    I have LabView 6.0 running on Win98.
    Any help greatly appreciated.

    Jeremy,
    Thanks for taking the time to answer
    I already checked the link you suggested but I am connecting to my remote instrument with a 2m cross-over cable.
    I Have looked into this a little further, it seems the sequence of events is as follows -
    1. After some hours the connection gets lost.
    2. TCP Read returns error 66 - Connection was closed by peer.
    3. If I try to restart my program I get Error 42 at TCP open Connection.
    4. Rebooting the PC doesn't clear the error 42 problem.
    5. If I try to PING my instument I get "Host unreachable".
    6. I have to "refresh" my network card by connecting to our LAN and either opening a file on another PC or simply sending a PING to another PC.
    6. I can then reconnect my remote instrument via cross-over cable
    and we're up and running for another few hours.
    I get the same problem on two different PCs with different NICs and different OS (Win98 and WinME)
    I am assuming that because a reboot has no effect that its not a memory allocation problem.
    It seems like LabView stops talking to the NIC and then gets locked out some how.
    Any other tips ?

  • VBAI Development Toolkit, Custom Plugin: How to get TCP data / connection ID configured in VBAI Communication Manager?

    Hello,
    I would like to create a custom plugin using the VBAI Dev. Toolkit. I'm using VBAI 2010 with LabView 2010.
    In this step I would like to send a TCP message over a TCP connection defined in VBAI Communication Manager. How can I get the open Connection ID? Or do I have to open the connection in the Plugin? In this case, how to get the defined TCP data from the Communication Manager?
    Thanks for your help.
    Best regards,
    Yellow

    Yes you could. You can even create a simple VBAI inspection that uses the TCP step and then migrate it to LabVIEW to see how VBAI opens the connection and uses it in the TCP step. It may be more involved if you want to allow the user to configure all the TCP settings (IP Address/port) and have all your custom steps use the same settings (maybe save them to an INI and have all steps use the same INI to get the settings).
    Hope this helps,
    Brad

  • How to get the IP of the client when TCP connect in the server

    How to get the IP of the client when TCP connect in the server.
    The only parameter got from the connection is connectionID.
    Solved!
    Go to Solution.

    I guess you're using "TCP Wait on Listener" on the server. This returns the remote address and port (as optional outputs).

  • TCP connection error when sending MODBUS commands to WAGO 750-881 controller after 113655 bytes of data have been sent

    Hi all,
    I am new to the world of labview and am attempting to build a VI which sends commands to a 750-881 WAGO controller at periodic intervals of 10ms. 
    To set each of the DO's of the WAGO at once I therefore attempt to send the Modbus fc15 command every 10ms using the standard Labview TCP write module. 
    When I run the VI it works for about a minute before I recieve an Error 56 message telling me the TCP connection has timed out. Thinking this strange, I decided to record the number of bytes sent via the TCP connection whilst running the program. In doing so I noticed that the connection broke after exactly 113655 Bytes of data had been sent each time. 
    Thinking that I may have been sending too many messages I increased the While-loop delay from 10ms to 20, 100 and 200 ms but the error remained. I also tried playing with the TCP connection timeout and the TCP write timeout but neither of these had any effect on the problem. 
    I cannot see why this error is occuring, as the program works perfectly up untill the 113655 Bytes mark. 
    I have attached a screenshot of the basic VI (simply showing a MODBUS command being sent every second) and of a more advanced VI (where I am able to control each DO of the WAGO manually by setting a frequency at which the DO should switch between ON and OFF). 
    If anybody has any ideas on where the problems lie, or what I could do to further debug the program this would be greatly appreciated. 
    Solved!
    Go to Solution.
    Attachments:
    Basic_VI.png ‏84 KB
    Expanded_VI.png ‏89 KB

    AvdLinden wrote:
    Hi ThiCop,
    Yes the error occurs after exactly 113655 bytes every time. The timeout control I would like to use is 10ms, however even increasing this to 1s or 10s does not remove the error, which leads me to believe that this is not the issue (furthermore, not adding any delay to the while loop, thus letting it run at maximum speed, has shown that the TCP connection is able to send all 113655 bytes in under 3 seconds again pointing towards the timeout control not being the issue here). 
    I attempted Marco's suggestion but an having difficulty translating the string returned into a readable string, (rightnow the response given is "      -#   +   ").
    As to your second suggestion, I implemented something similar where I created a sub VI to build a TCP connection, send a message and then close the connection. I now build each message and then send the string to this subVI which successfully sends the command to my application. Whilst not being the most elegant method of solving the issue, it has resolved the timeout problem meaning I am able to send as many commands as I want. So in that sense the problem has been solved. 
    If you still have tips on how to correctly read the TCP read output, I would however like to see if I could not get my first program to work as it is slightly more robust in terms of timing. 
    Modbus TCP RTU is a binary protocol, as you show in your Basic VI, where you format the data stream using byte values. So you have to interprete the returned answer accordingly with the Modbus RTU spec in hand. Now what is most likely happening is that the connection gets hung after a while since you do NOT read the data the device sends as response to your commands. The TCP/IP stack buffers those bytes and at some point the internal buffers overflow and the connection is blocked by the stack. So adding the TCP Read at strategic places (usually after each write) is the proper solution for this. Is there any reason that you didn't use the NI provided Modbus TCP library?
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • How to send joystick data over TCP connection

    Hi all,
    I am a long time Labview discussion forum user for learning, but this is my first time posting a question, I hope somebody can help me!
    In the attached VI I am trying to send data from a joystick over a TCP connection. I can send data fine using the TCP examples (in fact the majority of my VI is just a copy of the example). However I am to the point where I do not know how to send all the data necessary (3 axis data, 12 buttons, and the POV data) over TCP. Strings, clusters, and arrays were never my strong suite and converting between them is a nightmare for me.
    Basically I am trying to send each axis data (X,Y, and Z), button data (12 buttons), and POV data (the POV data will be calculated to adjust the position of a camera, so the immediate data is not important, I will add functions to add the change in the button movements to write a standing position for two servos [pan and tilt], for which that I will need to send over the TCP connection) over the TCP connection to control various cameras and motors. I don't know if it is posible to send that much data over a TCP connection in one write VI through a string, and also how to separate the string on the other side in order to control the client VI.
    Again, the actual TCP communication I get, and can operate fine, just formatting all the data into a string (or whatever is required) so that I can unpack on the other side is the issue here.
    Another question I have (not impotant to get the program running just might make it easier on me) is can a TCP server (which sends the data to the client) also recieve data back from the client on the same port ( for example sensor data and digital positions [on,off])? Or do I need to set up two TCP communication loops with the first client acting as the server on a different port than the first, which then sends the data to the original server, which also has a client TCP configuration in another loop? I hope this makes sense...
    One final question.....I already have a solution to this but using labview for the entirety of this project would be nice. I use skype to stream 1080p video from a webcam to my computer so I can view live feed. Can labview do this? This would be awesome if so, I am just not sure if the communication protocols in use could support real time (or as close as possible to streaming) for 1080p video.
    Thanks all in advance for your help,
    Physicsnole
    Attachments:
    cameraserver.vi ‏24 KB
    cameraclient.vi ‏18 KB

    Physicsnole wrote:
    In the attached VI I am trying to send data from a joystick over a TCP connection. I can send data fine using the TCP examples (in fact the majority of my VI is just a copy of the example). However I am to the point where I do not know how to send all the data necessary (3 axis data, 12 buttons, and the POV data) over TCP. Strings, clusters, and arrays were never my strong suite and converting between them is a nightmare for me.
    Well, you cast the axis info cluster to a string, but then you cast it back to an array of DBL. Thatr's not compatible. You should probably cast it back to an "axis info" cluster of exactly the same type. Go the the other VI and right-click the cluster wire to create a constant. Now move that diagram cluster constant to the other VI and use it as type.
    Your default ports don't seem to match. You seem to have client and server roles confused. In the sever you create a listener, but then you start sending packets, even though no connection is established. The connection needs to be initiated by the client.
    Your client stops the loop the first time a timeout is encountered. Shouldn't that be more permanent? Also, please retain code clarity and avoid unecessary complexities. For example, replace the "not or" with a plain "or" and change the loop to "stop if true"
    Physicsnole wrote:
    Basically I am trying to send each axis data (X,Y, and Z), button data (12 buttons), and POV data (the POV data will be calculated to adjust the position of a camera, so the immediate data is not important, I will add functions to add the change in the button movements to write a standing position for two servos [pan and tilt], for which that I will need to send over the TCP connection) over the TCP connection to control various cameras and motors. I don't know if it is posible to send that much data over a TCP connection in one write VI through a string, and also how to separate the string on the other side in order to control the client VI.
    You can send as much as you want. The casting to/from string is the same as described above.
    Physicsnole wrote:
    Another question I have (not impotant to get the program running just might make it easier on me) is can a TCP server (which sends the data to the client) also recieve data back from the client on the same port ( for example sensor data and digital positions [on,off])? Or do I need to set up two TCP communication loops with the first client acting as the server on a different port than the first, which then sends the data to the original server, which also has a client TCP configuration in another loop? I hope this makes sense..
    The primary function of a "server" is to wait for a connection and then communicate with the client once a conenction is established. An established TCP/IP connection is fully two-way and both sides can send and receive.
    LabVIEW Champion . Do more with less code and in less time .

  • How to prevent a TCP connection being closed when the VI that opened it finishes.

    Hello everyone.
    I am developing an application based around servers and clients communicating over TCP in LabVIEW 2012.
    When the server/client opens a TCP connection ,it launches an asynchronosly running "connection handler", to which it passes the connection reference which then takes over all the communcation. This all works fine.
    However - I have a situation where a client's connection handler can be informed of another "new" server. I would like it to open the connection (to see if it is still valid) and then pass this connection reference back to the client's main code to spawn a new connection handler. This prevents me locking up the Client's main code with a long-ish timeout if the "new" server is not actually accepting connections.
    The issue is that if the connection handler that opened up the connection to the "new" server is stopped, then it appears to destroy the reference that it opened. This means that the other connection handler that was merrily communcating with the "new" server has its TCP communciations closed (I get an Error code 1 on a write).
    I have created an example to demonstrate the issue which should be used as follows:
    1. Run server.vi - it will listen for a connection on the port specifed on its BD.
    2. Run CH Launcher.vi - it will open a connection to the server and pass the TCP reference to an instance of Connection Handler.vi which it launches.
    3. The Connection Handler should send data to the Server
    4. Stop the CH Launcher.vi
    5. The Connection Handler.vi will error.
    Any suggestions would be much appreciated.
    Cheers
    John
    Solved!
    Go to Solution.
    Attachments:
    TCP Test.zip ‏35 KB

    John_Neutron escreveu:
    In my case I have changes the part of the code that opens the TCP connection to a VI that has the same lifetime as the main VI so that any connections that have been opened will only be closed automatically when the main VI stops.
    And what are the effects? You are still facing the same problem or closing the connection only when the whole applicaton stops solved your problem?
    Regards
    Mondoni

  • Forefront TMG disconnected a non-TCP connection

    Hi,
    I am getting the following error alerts in  TMG
    Forefront TMG disconnected a non-TCP connection from 192.168.0.1 because the connection limit for this IP address was exceeded. Larger custom connection limits should be configured for the IP addresses of chained proxy servers and back-to-back Forefront
    TMG computers with a NAT relationship. 
    This error show two msgs for my both dns servers.
    My DNS servers Ip addresses
    192.168.0.1
    192.168.0.2
    Please help me out
    Thanks

    Hi,
    How about editing the Maximum non TCP sessions per second per rule setting?
    For more information:
    http://technet.microsoft.com/en-us/library/dd441028.aspx
    Best Regards,
    Joyce
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • [Solved]TCP connection blocked in SYN_SENT status

    I set up openssh daemon on my host and try to ssh to localhost to ensure it working. However the connection blocked for minutes then get
    ssh: connect to host localhost port 22: Connection timed out
    I checked "netstat -antup" output, the daemon was started and the new connection was in SYN_SENT status before time out
    tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      -                   
    tcp        0      1 127.0.0.1:38127         127.0.0.1:22            SYN_SENT    -
    I did not add any iptables rules on my host, here is the log of sysctl net.ipv4
    net.ipv4.tcp_timestamps = 1
    net.ipv4.tcp_window_scaling = 1
    net.ipv4.tcp_sack = 1
    net.ipv4.tcp_retrans_collapse = 1
    net.ipv4.ip_forward = 0
    net.ipv4.ip_default_ttl = 64
    net.ipv4.ip_no_pmtu_disc = 0
    net.ipv4.ip_nonlocal_bind = 0
    net.ipv4.tcp_syn_retries = 5
    net.ipv4.tcp_synack_retries = 5
    net.ipv4.tcp_max_orphans = 16384
    net.ipv4.tcp_max_tw_buckets = 180000
    net.ipv4.ipfrag_high_thresh = 262144
    net.ipv4.ipfrag_low_thresh = 196608
    net.ipv4.ip_dynaddr = 0
    net.ipv4.ipfrag_time = 30
    net.ipv4.tcp_keepalive_time = 7200
    net.ipv4.tcp_keepalive_probes = 9
    net.ipv4.tcp_keepalive_intvl = 75
    net.ipv4.tcp_retries1 = 3
    net.ipv4.tcp_retries2 = 15
    net.ipv4.tcp_fin_timeout = 60
    net.ipv4.tcp_syncookies = 0
    net.ipv4.tcp_tw_recycle = 0
    net.ipv4.tcp_abort_on_overflow = 0
    net.ipv4.tcp_stdurg = 0
    net.ipv4.tcp_rfc1337 = 0
    net.ipv4.tcp_max_syn_backlog = 1024
    net.ipv4.ip_local_port_range = 32768    61000
    net.ipv4.icmp_echo_ignore_all = 0
    net.ipv4.icmp_echo_ignore_broadcasts = 1
    net.ipv4.icmp_ignore_bogus_error_responses = 1
    net.ipv4.icmp_errors_use_inbound_ifaddr = 0
    error: permission denied on key 'net.ipv4.route.flush'
    net.ipv4.route.min_delay = 2
    net.ipv4.route.max_delay = 10
    net.ipv4.route.gc_thresh = 4096
    net.ipv4.route.max_size = 65536
    net.ipv4.route.gc_min_interval = 0
    net.ipv4.route.gc_min_interval_ms = 500
    net.ipv4.route.gc_timeout = 300
    net.ipv4.route.gc_interval = 60
    net.ipv4.route.redirect_load = 5
    net.ipv4.route.redirect_number = 9
    net.ipv4.route.redirect_silence = 5120
    net.ipv4.route.error_cost = 250
    net.ipv4.route.error_burst = 1250
    net.ipv4.route.gc_elasticity = 8
    net.ipv4.route.mtu_expires = 600
    net.ipv4.route.min_pmtu = 552
    net.ipv4.route.min_adv_mss = 256
    net.ipv4.route.secret_interval = 600
    net.ipv4.igmp_max_memberships = 20
    net.ipv4.igmp_max_msf = 10
    net.ipv4.inet_peer_threshold = 65664
    net.ipv4.inet_peer_minttl = 120
    net.ipv4.inet_peer_maxttl = 600
    net.ipv4.inet_peer_gc_mintime = 10
    net.ipv4.inet_peer_gc_maxtime = 120
    net.ipv4.tcp_orphan_retries = 0
    net.ipv4.tcp_fack = 1
    net.ipv4.tcp_reordering = 3
    net.ipv4.tcp_ecn = 0
    net.ipv4.tcp_dsack = 1
    net.ipv4.tcp_mem = 47808    63744    95616
    net.ipv4.tcp_wmem = 4096    16384    2039808
    net.ipv4.tcp_rmem = 4096    87380    2039808
    net.ipv4.tcp_app_win = 31
    net.ipv4.tcp_adv_win_scale = 2
    net.ipv4.icmp_ratelimit = 250
    net.ipv4.icmp_ratemask = 6168
    net.ipv4.tcp_tw_reuse = 0
    net.ipv4.tcp_frto = 0
    net.ipv4.tcp_low_latency = 0
    net.ipv4.ipfrag_secret_interval = 600
    net.ipv4.ipfrag_max_dist = 64
    net.ipv4.tcp_no_metrics_save = 0
    net.ipv4.tcp_moderate_rcvbuf = 1
    net.ipv4.tcp_tso_win_divisor = 3
    net.ipv4.tcp_congestion_control = cubic
    net.ipv4.tcp_abc = 0
    net.ipv4.tcp_mtu_probing = 0
    net.ipv4.tcp_base_mss = 512
    net.ipv4.tcp_workaround_signed_windows = 0
    net.ipv4.tcp_dma_copybreak = 4096
    net.ipv4.tcp_slow_start_after_idle = 1
    net.ipv4.cipso_cache_enable = 1
    net.ipv4.cipso_cache_bucket_size = 10
    net.ipv4.cipso_rbm_optfmt = 0
    net.ipv4.cipso_rbm_strictvalid = 1
    net.ipv4.tcp_available_congestion_control = cubic reno
    net.ipv4.tcp_allowed_congestion_control = cubic reno
    net.ipv4.neigh.default.mcast_solicit = 3
    net.ipv4.neigh.default.ucast_solicit = 3
    net.ipv4.neigh.default.app_solicit = 0
    net.ipv4.neigh.default.retrans_time = 100
    net.ipv4.neigh.default.base_reachable_time = 30
    net.ipv4.neigh.default.delay_first_probe_time = 5
    net.ipv4.neigh.default.gc_stale_time = 60
    net.ipv4.neigh.default.unres_qlen = 3
    net.ipv4.neigh.default.proxy_qlen = 64
    net.ipv4.neigh.default.anycast_delay = 100
    net.ipv4.neigh.default.proxy_delay = 80
    net.ipv4.neigh.default.locktime = 100
    net.ipv4.neigh.default.gc_interval = 30
    net.ipv4.neigh.default.gc_thresh1 = 128
    net.ipv4.neigh.default.gc_thresh2 = 512
    net.ipv4.neigh.default.gc_thresh3 = 1024
    net.ipv4.neigh.default.retrans_time_ms = 1000
    net.ipv4.neigh.default.base_reachable_time_ms = 30000
    net.ipv4.neigh.lo.mcast_solicit = 3
    net.ipv4.neigh.lo.ucast_solicit = 3
    net.ipv4.neigh.lo.app_solicit = 0
    net.ipv4.neigh.lo.retrans_time = 100
    net.ipv4.neigh.lo.base_reachable_time = 30
    net.ipv4.neigh.lo.delay_first_probe_time = 5
    net.ipv4.neigh.lo.gc_stale_time = 60
    net.ipv4.neigh.lo.unres_qlen = 3
    net.ipv4.neigh.lo.proxy_qlen = 64
    net.ipv4.neigh.lo.anycast_delay = 100
    net.ipv4.neigh.lo.proxy_delay = 80
    net.ipv4.neigh.lo.locktime = 100
    net.ipv4.neigh.lo.retrans_time_ms = 1000
    net.ipv4.neigh.lo.base_reachable_time_ms = 30000
    net.ipv4.neigh.eth0.mcast_solicit = 3
    net.ipv4.neigh.eth0.ucast_solicit = 3
    net.ipv4.neigh.eth0.app_solicit = 0
    net.ipv4.neigh.eth0.retrans_time = 100
    net.ipv4.neigh.eth0.base_reachable_time = 30
    net.ipv4.neigh.eth0.delay_first_probe_time = 5
    net.ipv4.neigh.eth0.gc_stale_time = 60
    net.ipv4.neigh.eth0.unres_qlen = 3
    net.ipv4.neigh.eth0.proxy_qlen = 64
    net.ipv4.neigh.eth0.anycast_delay = 100
    net.ipv4.neigh.eth0.proxy_delay = 80
    net.ipv4.neigh.eth0.locktime = 100
    net.ipv4.neigh.eth0.retrans_time_ms = 1000
    net.ipv4.neigh.eth0.base_reachable_time_ms = 30000
    net.ipv4.neigh.wlan0.mcast_solicit = 3
    net.ipv4.neigh.wlan0.ucast_solicit = 3
    net.ipv4.neigh.wlan0.app_solicit = 0
    net.ipv4.neigh.wlan0.retrans_time = 100
    net.ipv4.neigh.wlan0.base_reachable_time = 30
    net.ipv4.neigh.wlan0.delay_first_probe_time = 5
    net.ipv4.neigh.wlan0.gc_stale_time = 60
    net.ipv4.neigh.wlan0.unres_qlen = 3
    net.ipv4.neigh.wlan0.proxy_qlen = 64
    net.ipv4.neigh.wlan0.anycast_delay = 100
    net.ipv4.neigh.wlan0.proxy_delay = 80
    net.ipv4.neigh.wlan0.locktime = 100
    net.ipv4.neigh.wlan0.retrans_time_ms = 1000
    net.ipv4.neigh.wlan0.base_reachable_time_ms = 30000
    net.ipv4.conf.all.forwarding = 0
    net.ipv4.conf.all.mc_forwarding = 0
    net.ipv4.conf.all.accept_redirects = 1
    net.ipv4.conf.all.secure_redirects = 1
    net.ipv4.conf.all.shared_media = 1
    net.ipv4.conf.all.rp_filter = 0
    net.ipv4.conf.all.send_redirects = 1
    net.ipv4.conf.all.accept_source_route = 0
    net.ipv4.conf.all.proxy_arp = 0
    net.ipv4.conf.all.medium_id = 0
    net.ipv4.conf.all.bootp_relay = 0
    net.ipv4.conf.all.log_martians = 0
    net.ipv4.conf.all.tag = 0
    net.ipv4.conf.all.arp_filter = 0
    net.ipv4.conf.all.arp_announce = 0
    net.ipv4.conf.all.arp_ignore = 0
    net.ipv4.conf.all.arp_accept = 0
    net.ipv4.conf.all.disable_xfrm = 0
    net.ipv4.conf.all.disable_policy = 0
    net.ipv4.conf.all.force_igmp_version = 0
    net.ipv4.conf.all.promote_secondaries = 0
    net.ipv4.conf.default.forwarding = 0
    net.ipv4.conf.default.mc_forwarding = 0
    net.ipv4.conf.default.accept_redirects = 1
    net.ipv4.conf.default.secure_redirects = 1
    net.ipv4.conf.default.shared_media = 1
    net.ipv4.conf.default.rp_filter = 0
    net.ipv4.conf.default.send_redirects = 1
    net.ipv4.conf.default.accept_source_route = 1
    net.ipv4.conf.default.proxy_arp = 0
    net.ipv4.conf.default.medium_id = 0
    net.ipv4.conf.default.bootp_relay = 0
    net.ipv4.conf.default.log_martians = 0
    net.ipv4.conf.default.tag = 0
    net.ipv4.conf.default.arp_filter = 0
    net.ipv4.conf.default.arp_announce = 0
    net.ipv4.conf.default.arp_ignore = 0
    net.ipv4.conf.default.arp_accept = 0
    net.ipv4.conf.default.disable_xfrm = 0
    net.ipv4.conf.default.disable_policy = 0
    net.ipv4.conf.default.force_igmp_version = 0
    net.ipv4.conf.default.promote_secondaries = 0
    net.ipv4.conf.lo.forwarding = 0
    net.ipv4.conf.lo.mc_forwarding = 0
    net.ipv4.conf.lo.accept_redirects = 1
    net.ipv4.conf.lo.secure_redirects = 1
    net.ipv4.conf.lo.shared_media = 1
    net.ipv4.conf.lo.rp_filter = 0
    net.ipv4.conf.lo.send_redirects = 1
    net.ipv4.conf.lo.accept_source_route = 1
    net.ipv4.conf.lo.proxy_arp = 0
    net.ipv4.conf.lo.medium_id = 0
    net.ipv4.conf.lo.bootp_relay = 0
    net.ipv4.conf.lo.log_martians = 0
    net.ipv4.conf.lo.tag = 0
    net.ipv4.conf.lo.arp_filter = 0
    net.ipv4.conf.lo.arp_announce = 0
    net.ipv4.conf.lo.arp_ignore = 0
    net.ipv4.conf.lo.arp_accept = 0
    net.ipv4.conf.lo.disable_xfrm = 1
    net.ipv4.conf.lo.disable_policy = 1
    net.ipv4.conf.lo.force_igmp_version = 0
    net.ipv4.conf.lo.promote_secondaries = 0
    net.ipv4.conf.eth0.forwarding = 0
    net.ipv4.conf.eth0.mc_forwarding = 0
    net.ipv4.conf.eth0.accept_redirects = 1
    net.ipv4.conf.eth0.secure_redirects = 1
    net.ipv4.conf.eth0.shared_media = 1
    net.ipv4.conf.eth0.rp_filter = 0
    net.ipv4.conf.eth0.send_redirects = 1
    net.ipv4.conf.eth0.accept_source_route = 1
    net.ipv4.conf.eth0.proxy_arp = 0
    net.ipv4.conf.eth0.medium_id = 0
    net.ipv4.conf.eth0.bootp_relay = 0
    net.ipv4.conf.eth0.log_martians = 0
    net.ipv4.conf.eth0.tag = 0
    net.ipv4.conf.eth0.arp_filter = 0
    net.ipv4.conf.eth0.arp_announce = 0
    net.ipv4.conf.eth0.arp_ignore = 0
    net.ipv4.conf.eth0.arp_accept = 0
    net.ipv4.conf.eth0.disable_xfrm = 0
    net.ipv4.conf.eth0.disable_policy = 0
    net.ipv4.conf.eth0.force_igmp_version = 0
    net.ipv4.conf.eth0.promote_secondaries = 0
    net.ipv4.conf.wlan0.forwarding = 0
    net.ipv4.conf.wlan0.mc_forwarding = 0
    net.ipv4.conf.wlan0.accept_redirects = 1
    net.ipv4.conf.wlan0.secure_redirects = 1
    net.ipv4.conf.wlan0.shared_media = 1
    net.ipv4.conf.wlan0.rp_filter = 0
    net.ipv4.conf.wlan0.send_redirects = 1
    net.ipv4.conf.wlan0.accept_source_route = 1
    net.ipv4.conf.wlan0.proxy_arp = 0
    net.ipv4.conf.wlan0.medium_id = 0
    net.ipv4.conf.wlan0.bootp_relay = 0
    net.ipv4.conf.wlan0.log_martians = 0
    net.ipv4.conf.wlan0.tag = 0
    net.ipv4.conf.wlan0.arp_filter = 0
    net.ipv4.conf.wlan0.arp_announce = 0
    net.ipv4.conf.wlan0.arp_ignore = 0
    net.ipv4.conf.wlan0.arp_accept = 0
    net.ipv4.conf.wlan0.disable_xfrm = 0
    net.ipv4.conf.wlan0.disable_policy = 0
    net.ipv4.conf.wlan0.force_igmp_version = 0
    net.ipv4.conf.wlan0.promote_secondaries = 0
    I wrote another easy socket program by myself, strace it and find that the program blocked in the "accept" system call. How can I solve this problem, or what can I do to find out more clues? Thanks very much.
    Last edited by henryouly (2007-06-16 12:17:34)

    Lucke most likely nailed it.  FWIW, all SYN_SENT means is that you weren't sent an RST and the SYN attempt silently failed for whatever reason.  You can create the exact same state by sshing to a host that either doesn't exist on your network or is down.  Probably if you were sniffing traffic on your network, what you'd see is several ARPs coming from your machine, and no answers, or an ARP request, and ARP reply, and then a SYN packet with no reply.  In any case, it's most likely wrappers blocking access to the port.
    Last edited by Snarkout (2007-06-08 14:32:02)

  • MAIL USING PL/SQL PROCEDURE TCP CONNECTION ERROR

    I was trying to send an e-mail using the demo-mail helper package which uses UTL_SMTP package and on execution, it gives the following TCP Connection error. Is it some something to do with mail configuration?
    This is the sample code I was trying to run.
    demo_mail.mail( sender => 'Me <[email protected]>',
    recipients => 'Someone <[email protected]>, ' ||
    '"Another one" <[email protected]>',
    subject => 'Test', message => 'Hi! This is a test.');
    And this is the error I am getting.
    class oracle/plsql/net/TCPConnection does not exist
    at "SYS.UTL_TCP", line 537
    at "SYS.UTL_TCP", line 199
    at "SYS.UTL_SMTP", line 102
    at "SYS.UTL_SMTP", line 121
    at "VNARAYA.DEMO_MAIL", line 159
    at "VNARAYA.DEMO_MAIL", line 119
    at "VNARAYA.DEMO_MAIL", line 105
    at "VNARAYA.SEND_MAIL", line 2
    at line 1

    The Java library needed by UTL_TCP is not created properly. You may just run $ORACLE_HOME/rdbms/admin/initplsj.sql as SYS to install it:
    cd $ORACLE_HOME/rdbms/admin
    sqlplus sys/<sys-password> @initplsj.sql

  • 2 way TCP connection using IP addresses

    Hi All,
    I need to pass data in both directions between 2 pc's connected to the internet. I am aware of the various TCP/IP and data socket examples, I am using Labview 7.0. I dont know much about the ptotocol involved but figure I only need a few pieces of info.
    If the server machine wants to connect to a client machine on the same network I understand no changes are required to the example vis (ie port 2055 used in Simple Data Server). But what would happen if the server PC wanted to connect to a client in a different country? Is that when IP addresses are needed?
    I imagine my final vi front panel will have a "This machines IP Addr" and "Client's IP Addr" text box, operators of the machines then tell the other person their mac
    hine IP address which is entered manually to setup a 2 way link.
    Is it possible to get Labview to find the full IP address of the machine ready for the other user to type in. Thanks in advance
    Regards Chris

    On the client side the users will need to fill in the IP address or domain of the server. If that IP is on the Internet or somewhere else that will work as long as the client PC has physical access and permission to open a tcp connection (no firewalls that block the port you are using etc.)
    Make a connect dialog that pops up if the user chooses to connect and have the user input the IP there and click OK. You can add functionality like bookmarks and "home page" to make things easier. If a home page / server is defined the client can connect to that upon startup. You may want also to add functionality that will reconnect in the background if the connection is lost.
    The client's IP is of less interest. If you need it though just use the string to IP function
    and the IP to string function from the tcp/ip palette. Do not wire anything to the former funtion but wire it's output to the latter. The latter will then output the IP of the local PC.
    MTO

  • Still looking for anwers to TCP Connection data

    Can flash monitor TCP connection status? I need to read it
    somehow and then send that info back to the server. Posted this a
    number of weeks ago, but not a single nibble.
    Anyone?

    The server only uses port 80 in this case, and we are not
    connecting to any other domains. He can't seem to get a policy file
    to work, so the whole thing has now become my fault.
    The deal is, using the .close(); method works fine, but his
    PHP is pushing the file anyway. It took me a week to discover that
    this issue isn't mine. But .. the php developer is convinced that I
    haven't written the AS properly, or we wouldn't have this issue. I
    simply state that the way I am using the .close() method works
    fine, but his code is overriding it, which is out of my hands. But
    I am trying to find a solution, and we are both thinking this
    socket connection may be it, we just can't get it to work without
    errors.
    Funny, he pointed me to a site that he says does exactly what
    he wants this to do, and it throws at least six errors before the
    song finally plays. He has not acknowledge that minor deatil yet.
    :)

  • TCP connection closed but a child process of SQL Server may be holding a duplicate of the connection's socket in SQL2008R2

    Hello,
    I do get the below SQL error in production environment intermittently:
    TCP connection closed but a child process of SQL Server may be holding a duplicate of the connection's socket.  Consider enabling the TcpAbortiveClose SQL Server registry setting and restarting SQL Server. If the problem persists, contact Technical
    Support.
    According to the post I search in MSDN, the above error is fixed in SQL2008R-CU6, but I have SQL2008R2-SP02 CU09 patch in production environment and the above error still occurred intermittently. I am running SQL2008R2 SP02 CU09 patch with Windows 2008R2-SP01.
    I would like to know if anyone has  the same error happened to their SQL environment after applied SQL2008R2-SP02 CU06 patch and later.
    Any suggestion would be helpful.
    Best regards,
    PL.

    Hello,
    What happen if you apply the changes on the registry explained on the workaround section of the following article?
    http://support.microsoft.com/kb/2491214
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • TCP connectivity of subnet error : pre installation check  oracle 11.2 RAC

    Hi,
    I am trying to setup RAC 11.2 on Centos 5.7.
    When I run the preinstallation check, I am getting this error:
    Check: Node connectivity of subnet "192.168.210.0"
    Source Destination Connected?
    rac2[192.168.210.102] rac1[192.168.210.101] yes
    Result: Node connectivity passed for subnet "192.168.210.0" with node(s) rac2,rac1
    Check: TCP connectivity of subnet "192.168.210.0"
    Source Destination Connected?
    falca:192.168.100.218 rac2:192.168.210.102 failed
    ERROR:
    PRVF-7617 : Node connectivity between "falca : 192.168.100.218" and "rac2 : 192.168.210.102" failed
    falca:192.168.100.218 rac1:192.168.210.101 passed
    Result: TCP connectivity check failed for subnet "192.168.210.0"
    Check: Node connectivity of subnet "192.168.100.0"
    Source Destination Connected?
    rac2[192.168.100.219] rac1[192.168.100.218] yes
    Result: Node connectivity passed for subnet "192.168.100.0" with node(s) rac2,rac1
    Check: TCP connectivity of subnet "192.168.100.0"
    Source Destination Connected?
    falca:192.168.100.218 rac2:192.168.100.219 failed
    ERROR:
    PRVF-7617 : Node connectivity between "falca : 192.168.100.218" and "rac2 : 192.168.100.219" failed
    falca:192.168.100.218 rac1:192.168.100.218 failed
    ERROR:
    PRVF-7617 : Node connectivity between "falca : 192.168.100.218" and "rac1 : 192.168.100.218" failed
    Result: TCP connectivity check failed for subnet "192.168.100.0"
    There is some problem between the physical IP and the private IP connection.
    However I am able to ping successfully and also SSH successfully between the physical IP and the private IP.
    What could be the problem?

    hello, i am have problems installa oracle RAC 11.2.0.3 Helpppppppppppppppp
    Here are the 2 Virtual machine details:
    VM used: Oracle Virtual box 4.2.8
    Cluster Version: 11g R2 (11.2.0.3)
    Windows version: Windows 2008 Server R2
    No of node: 2
    Node details:
    Node 1 hostname: w2008-112-rac1
    Public ip (eth0): 192.168.0.151
    Subnet mask: 255.255.255.0
    Default gateway: 192.168.0.1
    DNS: 192.168.0.4
    Private ip (eth1): 192.168.1.151
    Subnet mask: 255.255.255.0
    Default gateway: none
    DNS: none
    Node 2 hostname: w2008-112-rac2
    Public ip (eth0): 192.168.0.152
    Subnet mask: 255.255.255.0
    Default gateway: 192.168.0.1
    DNS: 192.168.0.4
    Private ip (eth1): 192.168.1.152
    Subnet mask: 255.255.255.0
    Default gateway: none
    DNS: none
    file hosts
    127.0.0.1 localhost.localdomain localhost
    # Public
    192.168.0.151 w2008-112-rac1.localdomain w2008-112-rac1
    192.168.0.152 w2008-112-rac2.localdomain w2008-112-rac2
    #Private
    192.168.1.151 w2008-112-rac1-priv.localdomain w2008-112-rac1-priv
    192.168.1.152 w2008-112-rac2-priv.localdomain w2008-112-rac2-priv
    #Virtual
    192.168.0.153 w2008-112-rac1-vip.localdomain w2008-112-rac1-vip
    192.168.0.154 w2008-112-rac2-vip.localdomain w2008-112-rac2-vip
    #SCAN (192.168.0.155 - 192.168.0.157 in DNS)
    192.168.0.155 w2008-112-scan.localdomain w2008-112-scan
    192.168.0.156 w2008-112-scan.localdomain w2008-112-scan
    192.168.0.157 w2008-112-scan.localdomain w2008-112-scan
    Error **************
    ERROR: PRVF-7617 : Node connectivity between "w2008-112-rac1: 192.168.0.151" and "w2008-112-rac2: 192.168.0.152" TCP connectivity check failed for subnet "192.168.0.0"
    help Plis ......

Maybe you are looking for

  • HT1386 How can I transfer music from my iphone to my Mac?

    I have music on my iphone, but I just got a new laptop and I want to put the music on my phone to my new itunes. How can I get it all synced to my new laptop?

  • I install my CS6 Design and Web Premium unsuccessfully.

    I install my CS6 Design and Web Premium.    The whole process seem normal until at the end it says, "Installation finished.  But unsuccessfully for the following modules."  And then showing all the modules icons.  What should I do now?

  • [Zen Micro] [Firmware] Wish to improve the ergonom

    Hi. I bought a Zen Micro, and in my opinion it sounds great...except its ergonomics, which could be easily improved. Touchpad is pleasant to browse in the menus fastly, but it's often hard to select just the next or previous item : why couldn't we us

  • Field status for procurement indicator.

    Hi Experts I have several procurement types created. But for some time i wish to have one indicator as default. This has been set. However i wish to have the field status 'display'. It means, while creating component, the procurement indictor field s

  • Cluster / Load balancing and no. of user

    Hi Just wondering what kind of cluster / load balancing setup is need for e.g. 50 concurrent users ? and what's the deciding factor that will justify additional presentation service / BI server to be added to an existing cluster farm ? Or maybe if yo