Multiple tcp connections

I have noticed using resource monitor that Skype.exe periodically opens connections to around 40 different internet addresses. I have not timed it but it happens probably around 3 times an hour.
Why? Constantly it keeps connection to 3 adresses and lets assume it needs that for different services, what are the rest of them about?

why are you guys struggling so much.
Simply create a ServerSocket and make it accept a new incomming connection and push it to new thread.
this enables you to have multiple connections on the same port running simultaniously.
if you are struggling with the server code, just message me.
--Lucky                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Similar Messages

  • Can the GPIB-ENET/100 handle multiple TCP connections?

    Can the GPIB-ENET/100 handle multiple TCP connections from multiple computers?
    -Daniel

    Yes, the GPIB-ENET/100 can handle multiple TCP connections.
    To safely access the same GPIB-ENET/100 or GPIB-ENET from multiple applications on one or more computers at the same time, use the iblck function. The iblck function prevents one application from interrupting a call made to the GPIB-ENET/100 or GPIB-ENET from another application. Without it, one application could cause an I/O operation initiated by another application to abort or cause other unexpected behavior.
    Check the NI-488.2 User Manual for more details:
    http://www.ni.com/pdf/manuals/370428a.pdf
    Winston L.
    National Instruments

  • Opening and closing Multiple TCP connection​s issues

    Hi all I am having an issue with the TCP VI’s and wondering if anyone has experienced this issue.
    My application is required to scan 50-100 IP addresses (statically assigned) and discover if an Ethernet device is connect at that IP address. Currently I am able to achieve this by opening a TCP connection and testing the error cluster to determine if a timeout has occurred (no timeout error  means Ethernet device available at the IP address). I then ensure that the TCP connections are closed.
    The issue I am have is that I require a 1 second delay between the  TCP open and the TCP close which significantly slows down the process. Without the 1 second delay the vi successfully connects to the device once then fails to make any TCP connect regardless of the time delay until the PC is reset.  
    If anyone has any advice I would be very grateful
    David Barr
    P.S. I have attached a simplified section of code showing this issue
    Attachments:
    TCP Open close issue.vi ‏15 KB

    smercurio_fc wrote:
    If I understand you correctly you want the time delay to be 1 second if there's a successful connection....
    While I don't have a specific answer for this problem. I want to clarify for him. I believe the issue is, what if all connections ARE there? That means you keep returning a wait of 1 second 50-100 times so It takes 50-100 seconds just to initialize. I think the user is looking for a way to check for valid connections, but do so in such a way that eliminates the need for a wait which is greatly slowing things down.
    CLA, LabVIEW Versions 2010-2013

  • Multiple TCP/IP connections

    Hello, 
    I am new with labview and I am trying to connect WAGO controller with LabVIEW 13  through modbus protocol via TCP/IP. Now, the question is how can I have multiple TCP/IP connections in the same LabVIEW project but different VIs? I am using MB ethernet master query.vi to write and read registers. Any suggestion would be very helpful to me. 
    Thanks and Regards

    Yes, Nathan's idea is a good one to remember any time you have a common resource that will be accessed from multiple locations. In addition to instrumentation, I have used this idea for files and database connections.
    An added benefit is that it allows you to redefine the interface to the resource to make it easier to access. In fact you could even use it to hide the exact nature of the resource you are accessing.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Unable to connect via RDP 5.2 when multiple RDP-TCP connection setup with NLA disable

    Hi All,
    Need help urgently, I had setup a multiple RDP-TCP connection for separate RDP connection with different IP.
    Problem I face after setting up multiple RDP-TCP connection, the old version of RDP 5.2 non longer working even with NLA disable. RDP 6 and above no problem connecting to the RDP session.
    Error message on RDP 5.2 shown as:
    "Because of security error, the client could not connect to the remote computer. Verify that you are logged on the network, and then try connection again."

    Hi,
    Please try the steps in the article below and see how it works.
    Because of a security error, the client could not connect to the Terminal Server
    http://support.microsoft.com/kb/329896
    Thanks.
    Jeremy Wu
    TechNet Community Support

  • Anyone else having an issue with TCP connections using iCloud for Windows?

    Hi,
    Before I asked this question, I did wait to see if any related questions came up, but none did, so I submit it now.
    On my admittedly older laptop running Windows 7 64b Home, I've run into difficulties with the iCloud for Windows app to the extent that I had to uninstall it.
    It would that, as my laptop was running, in the background, iCloudServices.exe would endlessly iterate TCP connections, which, while not actively sending or receiving any data, after some hours would number over 100 instances, taking up resources, and grinding my laptop's WiFi connection to a grindingly slow pace. I ended up, within the app, turning off everything, iCloud Drive and Photos, (I never used bookmarks), but still this would continue to occur.
    I contacted Apple Support, explaining what was going on, and they stated they only dealt with IOS and gave me a Microsoft Support number. When I called Microsoft support, I came more and more to the realization that the issue was specifically with the iCloud for Windows app, as that was the only software that was endlessly creating and not closing TCP connections as it was. How was Microsoft supposed to solve an issue with Apple code?
    So I called Apple back, whereupon they insisted it was a Microsoft issue. I explained other cloud services installed on the same computer were not having the same issue, it was unique to ICloudServices.exe. They stated they only dealt with IOS. I stated I purchased an iPad Air less than 7 months ago, and was trying to run iCloud in support of that.  They again stated they only dealt with IOS, and suggested I again try Microsoft. I asked them if it was reasonable to expect Microsoft to solve issues with Apple code? They said regardless, there was zero support offered for anything having to do with Windows, and all I could do was uninstall the app, which I did, though that did not feel very satisfactory to me. My thinking is, if Apple writes a Windows app in support of their hardware, they should offer support for it.
    Anyway, I was just wondering, is this an issue unique to me? or have others experienced a similar issue? I found this issue by opening the Windows Resource Monitor, looking under the Networking tab, and scrolling through the TCP Connections section to find 100+ concurrent iCloudServices.exe instances listed, whereas even Chrome, with multiple tabs and extensions, topped out at around 20.
    My one month old Desktop, DYI, sports a solid Asus 1150 MoBo, i7-4790k cpu, 16GB Ram, and an EVGA GTX 970 video card. I list some specs only to illustrate this computer has no hardware issues in comparison to my long in tooth laptop. On this desktop, running Win 8.1 Pro 64b,  at least as many, identifiably Apple, background service TCP connections are created even compared to Chrome, regardless of many tabs being open, many extensions, and even some related apps. Adobe does not even come close, though I run the full CC subscription. On this new computer, running Windows 8.1 Pro 64b, there are currently over 50 TCP connections and loopbacks that do not identify themselves, with just a - for the Image, and PID. With the experience on my laptop, I wonder how many of these are generated by Apple software, if not specifically iCloud software?
    The frustrating aspect of these connections is they seem in no way active, While the Chrome and Adobe connections can be seen to be transferring data, as long as I am not running iTunes, or so have my iPad actually plugged in, it seems 99% of the time these iCloudServices.exe connections are just taking up ports, neither sending nor receiving any data discernable to me under the Processes with Network Activity, or Network Activity lists, both displayed in the same window as the TCP Connections in the Windows Resource Monitor.
    Though I am fairly ignorant as regards coding, it seems as if there is no call to close a connection, very specifically, iCloudServices.exe, when it is no longer needed, and the next time a connection is needed, a new one is opened, rather than accessing the one previously opened. The only other reason I could imagine this might be occurring is if my Norton Internet Security software might mask and/or block the port after a certain time of inactivity.
    Anyone out there have any ideas or advice about this? Thanks in advance.

    Thanks jared,
    I'm still dealing with this issue through Apple. Some time after I posted this, I contacted Apple again. They did start a case up for me, as I was experiencing the same behavior on two different machines, with two different versions of Windows.
    So far it remains unsolved. I've logged iClouds for Windows on my desktop, which is brand new, then logged for awhile after completely uninstalling Norton Security Suite, depending on the Microsoft security for some time, and finally logged after I uninstalled iCloud for Windows, restarted, installed a clean download, and connected using a completely different test account, which Apple set up for me. None of this made any difference. Looking at the logs, it seems every 10 minutes, iCloudServices.exe creates a new TCP connection to confirm I'm using less than 5GB on iCloud, (which I am by a good margin, using less than 2GB), it seems this connection is not closed, and when the next iteration rolls around 10 minutes later, a new TCP connection is created. I come very close to having 6 TCP connections created per hour, until I restart my computer. This works out to... 6 x 24 = 144/day.
    Perhaps the article you posted will shed some further light on this. I'm thinking seeing the state of the connection through netstats, at the least, could help.
    For the last week, I've been putting a hold on further logging, as Apple wants me to create a new user account on one of my computers, install iCloud for Windows there, and log it running in the other account. This however basically means I cannot use my computer for a fair number of hours, and I've been busy enough with work the past week that I haven't the time or energy to afford to set this up and run it. I've had need of my computers too much for the past week.

  • Multiple http connection

    is it possible for me to make multiple http connection to server?
    I'm trying to send data for about 40kb, i send the data into 80 parts ( a part about 500 bytes)..
    is it possible to make about 80 thread in the same time??
    I do this way to reduce time consumption...
    Help me please..

    No, in this case, more threads will most likely slow down the data transfer:
    - more threads means more TCP connections, means more overhead
    - CPU scheduling will make it slower than using one thread, they can't work symultanious anyway
    - One thread is probably already capable of fully filling the network bandwidth with data

  • Proper method to reset tcp connection after timeout error

    I have a application that I am building that communicates with a Modbus TCP device.  If a communications error occurs I would like to be able the reset the TCP communications.  What I have is a control that fires a event when pushed.  In this event I have a sequence that first closes the tcp connection and then opens a new connection.  My applications starts and runs fine.  To test the reset function I removed the ethernet cable from the device and waited of a timeout to occur.  I plugged the cable back in and pushed my reset control. Occasionally the reset will occur but most times I will get a time out error at the Open TCP vi.  After this, the only way I can establish communications is to exit my application, disable and then enable my network device.  Then when I restart my application I have communications with my device.
    Any help would be appreciated on how I should be resetting my TCP connection.
    Thanks
    Terry
    Solved!
    Go to Solution.

    Terry S wrote:
    I have attached a example vi (LV10)  that shows just the TCP connection and Reset.  An error will occur when trying to perform the open tcp in the reset event.
    As written your code should be fine. There is nothing inherently wrong with it. However depending on the device you are communicating with you may be trying to reestablish the connection too quickly after you closed the connection. The device may not allow multiple connections to it and may require sometime to clean things up on its end after you close a connection. As an experiment trying waiting a short time between the TCP Close and the TCP Open. If possible you may want to try using Wireshark to see what is happening on the network. It can be useful in diagnosing what is going on.
    Mark Yedinak
    "Does anyone know where the love of God goes when the waves turn the minutes to hours?"
    Wreck of the Edmund Fitzgerald - Gordon Lightfoot

  • TCP connect consumes 80% of CPU load

    Hello!
    I've done some profiling on a Java application and i see that 80% of the time the application has on the CPU is used for establishing a TCP connection.
      Socket c;
      c.connect("",xxxx);The application performes several hundreds of connect per minute, but most of them take about 5 sec or less, but som uses the CPU for more than 130 seconds!!
    Could, i suspect it too be a problem with the network card beeing overloaded and will try wit multiple NIC's. But does anybody have any experience with this??? and maybe point out some improvements.

    Hello!
    Should have mentioned it.. we are using a
    ThreadPoolExecutor with 1000 threads in the core. But
    shall look into that. thanx :-)
    There may be some improvements that can be done in
    that areaThis doesn't have anything to do with what I am talking about. I am talking about a pool of open connections (sockets) not a pool of working threads.
    Here is the thing when you (in a program) tell a socket to close the OS gets told that the socket is no longer in use and should be closed. The OS then closes the socket but doesn't actually release the allocated resources until it feels like it. It feels like it when it (a) has some spare time with nothing else to do or (b) it has to reclaim the resources because something else needs them.
    In short the OS final clean up of socket resources is rather akin to garbage collection by the JVM... it will happen but not neccessarily right away and you really can't do anything about that.
    Let me make this 100% clear. This is NOT a Java problem. This is an OS "problem". Although it's not really a problem either. Under most sensible scenarios that model works just fine... your problem is that you are doing something foolish.
    Creating and disposing of sockets is an intensive task for the OS. The queue of sockets waiting to be finally disposed of by the OS grows and grows while it is busy creating new sockets for you until eventually it HAS to clean up in order to give you a new socket. Then you pay a big penalty in time while the OS does it's garbage collection.
    So in summary as it goes this situation is insolvable. What you need to do is not be creating and destroying hundreds of sockets every second. How can you do this? By using a pool of already open sockets that are shared among your various threads.

  • WRT55AGv2 dropping idle TCP connections

    I have a WRT55AGv2 and it constantly is just dropping idle TCP connections. This has made it totally useless for me until I can find some fix for this. I usually have multiple SSH and FTP sessions that I just leave open all day.
    This happens on both the wired and wireless interfaces.
    Can anyone suggest something that could fix this?

    I don't use any P2P applications and I do not use anything that generates a huge number of connections in short periods.
    I've already changed the MTU setting to 1300.
    I've tried disabling the wireless interfaces and just use a wired connection and it still happens. Idle TCP connections just get dropped.
    What else could I try?

  • Combining UDP and TCP connections

    I am trying to build a simple client -server app, where multiple client sends price quotes to a server and the server does some analysis on these numbers and spits it back out to all the clients every 5 seconds or so. Before I start, I want to make sure I am thinking about it correctly. I was thinking that I could have on each client a UDP connection and a TCP connection, the TCP connection would be used to send the quotes to the server. This way I have a live connection and confirmed packet reception from client to server.
    The UDP would be used for when the server sends back out the quotes to all the clients, since the server is just sending out back certain ones (the best quotes that is) to all the clients. Does that seem like a reasonable design?

    The only reason is because the server should be sending out it's information via datagrams because it wants to send the same message to all the clients. So in my point of view it looks like it would be more efficient to send out one datagram, broadcasted instead of going through each client and sending the same thing, especially when I'm trying to send an update every 5 seconds or so.

  • Does RMI protocol open a new TCP connection?

    Hey,
    I have an eclipse client that runs on computer A,
    And JBoss as a server that run on machine B.
    The client initials the initial context and work against a stateless session bean.
    When I ran sniffer I noticed in a strange behavior- a lot of new TCP connection and wait for a 3 seconds for each connection.
    It seems strange; does RMI need to open a new TCP connection for each call?

    Not necessarily for each call: RMI tries to conserve connections as much as possible, but of course it does need to open connections, and more than one at a time if there are multiple client threads doing RMI calls simultaneously.
    I think we're actually talking about RMI/IIOP here if this is JBoss.

  • Sharing a TCP Connection

    I have an embedded processor that opens a TCP socket to a program running on a web server and dumps real time measurements on to the server. I am trying to design an applet that opens a TCP connection to this program and thus gain access to the information dumped by the embedded system. This works fine for a single applet. But when I try doing it with several applets at a time, I run into trouble since all these applets try to read from the socket to the processor.
    My question is how do you share a single open TCP connection for reading?
    Thanks in advance.
    Prathap

    There is absolutely nothing that stops one from connecting to a single server using multiple sockets from a single application.
    So you doing something wrong in your socket code.

  • ASA 5505:Static Routing and Deny TCP connection because of bad flag

    Hi Everybody,
    I have a problem. I made a VPN site-2-site with 2 ASA 5505. The VPN works great. And I create a redondant link if the VPN failed.
    In fact, I use Dual ISP with route tracking. If the VPN fails, the default route change to an ISDN router, situated on the inside interface.
    When I simulated a VPN fail, the ASAs routes switch automatically on backup ISDN routers. If I ping elements, it works great. But when i try TCP connection like telnet, the ASAs deny connections:
    %PIX|ASA-6-106015: Deny TCP (no connection) from 172.16.10.57/35066 to 172.16.18.1/23 flags tcp_flags on interface interface_name.
    the security appliance discarded a TCP packet that has no associated connection in the security appliance connection table. The security appliance looks for a SYN flag in the packet, which indicates a request to establish a new connection. If the SYN flag is not set, and there is not an existing connection, the security appliance discards the packet.
    thanks!
    EDIT: On the schema, The interface of the main asa is 172.16.18.148...

    Check if the xlate timer is set greater than or equal to what the conn timer, so as not to have connections waiting on xlates that no longer exist. To minimize the number of attempts, enable "service resetinbound" . The PIX will reset the connection and make it go away. Without service resetinbound, the PIX Firewall drops packets that are denied and generates a syslog message stating that the SYN was a denied connection.

  • Our home network has multiple devices connected by iCloud. Having problem with Calendar. On one iMac, all the events are duplicated. How can I correct that problem? Under the Calendar accounts, I had my Apple id listed and also just iCloud.

    Our home network has multiple devices connected by iCloud: 2 iMacs, 2 iPhone 4s, 1 MacPro Laptop, and 1 iPad 2.  When using Calendar, all the events were
    duplicated on my husbands iMac.  On his computer, under Calendar accounts, I had included iCloud and also my iCloud ID.  I thought that because I had two accounts listed that were connected to iCloud, that might be the cause of the duplication.  When I deleted ithe calendars from one of the accounts, it resulted
    in deleting all of the events on all of our network devices!
    I have since entered some new events into Calendar from my iMac and from my iPhone.  These appear correctly on all devices except my husband's iMac where they are again all duplicated.
    I have two questions: 1)  How can I eliminate the duplicated events on my husband's computer and 2) How do I retrieve the old wiped out Calendar events from
    Time Capsule.  I don't know how to find Calendar in the Time Capsule.  If I find the Calendar information in Time Capsule, how do I transfer it to my current Calendars?
    I was obtaining phone help from one of the Apple techs at Apple Support, but our call was disconnected part way through.  Didn't know how to reconnect with the tech.
    Thanks for any help.

    The warranty entitles you to complimentary phone support for the first 90 days of ownership.

Maybe you are looking for

  • 8900 Calendar Views

    Is there any way to see a monthly view in the calendar app instead of a daily/weekly view?  I had an older blackberry that show the whole month and allow you to scroll through the days.  It would show a mark on the day if you had an appointment.

  • How can I change a print page orientation from portrait to landscape

    How can I change the page orientation when printing from portrait to landscape?

  • Back To My Mac and L2TP

    Hi, In version 7.5+ firmware for the AEBS if you used "Back To My Mac" the base station would silently ignore any user attempts to redirect the L2TP ports. This of course would screw up any attempt to use the VPN software included in Snow Leopard and

  • Looking for a solution for Sharing PDF form

    Thanks all for your help in advance. We are about to roll out a process that allows managers to provide employee feedback to us via a form I designed in Acrobat and imported into FormsCentral. I was wondering if there was any way for a manager to sha

  • Changing the column names displayed via an ODBC driver

    Hi we are just starting to used Crystal Reports to improve the reporting capabaility of a legacy application, we can access the data fine using an ODBC driver. What we want to do is change the column names that are displayed within Crystal Reports so