To connect to several servers

Hi,
I must make an application that calculates the number pi. Points will be created at random and will use the circle unit.
The user will say to the client the number to him of points that wishes to generate.
So, the client t will receive that number and it will distribute them between several servers. The servers will make the calculations (must work simultaneously) and will give back the result to client. Finally the client will gather the data that have provided the servers to him and will show the final value of pi.
The number of servers is a parameter that will fix at programming, but that must easily be modifiable.
I have read about a server and several clients; but now it's just the inverse.
How I can create several servers simultaneously? How I can connect a client to several servers so that these make the calculations simultaneously?
Any idea? Any reference?
I'm using something like that:
import java.io.*;
import java.net.*;
class Client {
  static final String HOST = "localhost";
  static final int PORT=5000;
  public Client( ) {
    try{
      Socket skClient = new Socket( HOST , Port );
      InputStream aux = skClient.getInputStream();
      DataInputStream flux = new DataInputStream( aux );
      System.out.println( flux.readUTF() );
      skClient.close();
    } catch( Exception e ) {
      System.out.println( e.getMessage() );
  public static void main( String[] arg ) {
    new Client();
import java.io.* ;
import java.net.* ;
class Server {
  static final int PORT=5000;
  public Server( ) {
    try {
      ServerSocket skServer = new ServerSocket( PORT );
      System.out.println("Listening at port " + PORT );
      Socket skCliente = skServidor.accept(); // Crea objeto
     /* CODE CALCULATE */
   } catch( Exception e ) {
      System.out.println( e.getMessage() );
  public static void main( String[] arg ) {
    new Server();
}Thanks a lot

Here is a screenshot of the SEP log showing the connection.
I've disabled all items in this link:
https://support.mozilla.org/en-US/kb/how-stop-firefox-automatically-making-connections#w_anti-malware-list-updating
So, it this connection embedded in firefox source code?
Is google collecting firefox user statistics?

Similar Messages

  • FF connects to several IP addresses on start-up, how to prevent it from happening?

    Hi, I am wondering how I can turn Firefox off from connecting to several IP addresses when it starts up?
    I have set Firefox to remember my visited web pages/tabs, but to not load until the tab is chosen.
    I have also gone through the advices on the following page:
    http://support.mozilla.org/en-US/kb/how-stop-firefox-automatically-making-connections
    and have followed it carefully and disabled everything but to no avail.
    Also in the about:config I have renamed all Google http(s) links to see if it prevents FF from connecting as some of the IP addresses leads to Google (173.194.32.*), but no success.
    A search here on Mozilla or Google gives very little on this particular matter.
    I have also disabled all addons but doesn't help.
    The only way to prevent FF from connecting with internet is to delete "prefs.js" and "sessionstore.js", but then I loose all history.
    I have also used a clean FF installation and taken the "prefs.js" and "sessionstore.js" so to not loose history, but it doesn't help.
    Can anyone help me out, thanks!

    Ok, I have now installed an original version of Firefox 13.0.1, set it up with a basic set of few add-ons for safe browsing being as follow:
    * NoScript
    * RequestPolicy
    * BetterPrivacy
    * HTTPS Everywhere
    In all cases described below, I browsed to a few pages, afterwards I go to an empty page/tab (about:newtab) before I close the browser, and is set to: "browser.newtabpage.enabled;false" in the hope also a newtab should be empty.
    I also followed the instructions under the following link: https://support.mozilla.org/en-US/kb/how-stop-firefox-automatically-making-connections
    * further on I have disabled a few other things under about:config to stop this "leak", such as webGL, telemetry, rename all google links, etc.
    1st test
    * I did restart in Off-line mode as described under the link given by jscher2000, when restarting the firewall shows no sign of connection to the internet, not even when I toggle from off-line to on-line.
    2nd test
    * with all add-ons enabled, I got the following result, see below for the list of IP numbers/info:
    * 212.121.101.7 Server Location: Netherlands ISP: Routit BV
    * 173.194.32.0 Server Location: Mountain View, CA in United States ISP: Google
    * 173.194.32.4 Server Location: Mountain View, CA in United States ISP: Google
    * 95.100.4.61 Server Location: Europe ISP: Akamai International B.V.
    * 192.150.19.49 Server Location: San Jose, CA in United States ISP: Adobe Systems
    * 78.129.207.59 Server Location: United Kingdom ISP: Iomart Hosting Limited
    * 69.50.232.54 Server Location: San Jose, CA in United States ISP: Silicon Valley Web Hosting
    * 82.103.140.42 Server Location: Denmark ISP: EasySpeedy ApS
    3rd test
    * I disabled all add-ons and closed browser, and started again, same result as in 2nd test, except that 212.121.101.7 was replaced by
    * 37.0.87.7 Server Location: Netherlands ISP: Routit BV .
    As this behavior has apparently nothing to do whether it's portable or non-portable version of Firefox, one can assume it has always been like this as at least between all versions from 13.0.1 to 19.0.2, as the portable version 19.0.2 behaves the same way.
    Let us not forget another user have experienced apparently the same issue under the following link: http://support.mozilla.org/en-US/questions/930187
    Any more ideas how the browser user can take control over this behavior, or any suggestions what could be wrong?

  • How to connect to two servers behind a firewall

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

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

  • Why can´t i connect to Windows servers after installing Lion?

    Why can´t i connect to Windows servers after installing Lion?

    Me too!
    MacBook Pro 15" 2011, OS X Lion 10.7

  • I have a 27" iMac connected to several others pc and to Server via router. Very frequently Lan or internet drops in my iMac

    I have a 27" iMac connected to several others pc and to Server via router. Very frequently Lan or internet drops in my iMac. I Have OS 10.6.7 with all updates.

    Issues like this are going to be related to the network. Intermittant problems are typically due to network interference, have you checked istumbler.net to get a report of your network?

  • Connecting two distant servers via a common WAN Internet connection.

    Hi all,
    I have two servers located in two different countries. For example Server A (Windows 2003 with Active directory) is located in Singapore. Another Server B (also Windows 2003 Server with Active Directory) is located in Kuala Lumpur. Both computers are connected to Internet via local ISP (WAN connection with dynamic IP) to respective countries.  There is few local users at each places which are connected to local servers at both places with LAN.
    I would like to connect these two servers togather via WAN (Internet- may be tunnelling, VPN, I don't know much what are other technologies) My objective is to connect both Server A and Server B so that I can keep track of active directory information, user management and authentication. Please let me know how can I achieve that? What are needed and what configuration and addition device, server needed. Please give me simple, detailed cost effective methods.
    Thanks.

    First you want to get static IP's and then you can setup an IPSEC tunnel or site to site VPN.  Then you will want to creat a trust between the 2 domains if they are in different forests.  Then you can add your user account to a universal group (forest functional level must be at Server 2003 level) for enterprise management.
    James Goodwin - Senior Technical Instructor & Network Infrastructure Expert
    MCT, MCP+ I, MCTS:Server 2008, MCTS: SCCM, MCTS:Vista
    MCSA:S, MCSE:S, MCITP:SA, MCITP:EA , MCITP:ES, CCNA,
    CCSI(# 32018),C|EH, C|HFI, C|EI, HDSA, A+, Network+, i-Net+, Server+, Security+
    My Blog:http://thattrainerguy.blogspot.com/

  • Classic: will not recharge; apple logo flashes every few seconds then fades away; have tried the 'reboot' advice i.e. move hold switch on and off, hold menu and center button, no success.  have tried this many times and kept connected for several hours.

    I have a classic, several years old.
    It will not recharge; the Apple logo flashes every few seconds then disappears. 
    I have tried the 'reboot' advice i.e. move the Hold switch on and off, hold the Menu and Center buttons, no success. 
    I have tried this many times and kept the ipod connected for several hours.  And I have tried two different cords, one connected to the desktop computer, one connected to electrical outlet.

    Hi enbridge4,
    If your iPod Classic won't charge or turn on, you may find the following articles helpful:
    Apple Support: iPod won't turn on
    http://support.apple.com/kb/ts1383
    Apple Support: iPod's battery doesn't charge
    http://support.apple.com/kb/ta44551
    Regards,
    - Brenden

  • Why connect two dhcp servers with different IP addresses?

    
    so for an assignment at college we had to configure a router connected to two switches which both had a server connected to them.
    the computers were connected via dhcp to either server however each side had a different IP. we have now been asked to justify as to why two servers were used with different IP which I cannot quite produce a business orientated answer.
    I can understand connecting two dchp servers on same IP to increase fault tolerance but I do not understand using two separate IP addresses.

    Hi,
    Does “using two separate IP addresses“ mean 2 subnets which are connected by router?
    If you have separately configured 2 DHCP servers on the 2 subnets, and want 1 of the 2 DHCP servers to provide fault tolerance for the other. You need to use an RFC 1542–compliant router, or DHCP relay agent, in order to forward DHCP broadcast traffic.
    If there is any misunderstanding about your question, please correct. 
    Best Regards,           
    Eve Wang                                                                             
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Restart several servers in parallel, email & verify services

    I'm trying to come up with a script to restart several servers that I can list in a txt file. I can't restart them one at a time, as the request is to restart them all at the same time.
    Next I need to verify that a couple of services are running
    Log the restart time and the time the server is back online (this could just be a ping check or rpc service check)
    Last part I have to do is email out the log file of the time info and service status.
    I'm not good at coding, and have found some info, but nothing that does this.
    Can anyone please help me?
    Thank You
    Domran

    What version of PowerShell are you planning on running this from? This can make a difference in the use of Restart-Computer and how you can test for when a system comes online (V3+ can use the -Wait parameter with -For parameter to check for a specific
    check action such as DCOM or WSMAN). You could use a workflow in V3+ or even stick with PSJobs.
    Boe Prox
    Blog |
    Twitter
    PoshWSUS |
    PoshPAIG | PoshChat |
    PoshEventUI
    PowerShell Deep Dives Book

  • Weblogic managed servers connecting to the servers in different cluster

              Hi All,
              We have a weired problem going on for a while. We have a cluster configuration
              with an admin server and two managed servers. We have the similar configuration
              in DEV, TEST and PROD. The problem is that the managed server members in DEV cluster
              are making connections to managed servers which are member of PROD cluster for
              session replication. The same way TEST servers are trying to connect to PROD and
              DEV.
              Has anyone seen this kind of problem before. BEA seems to be cluless so far.
              Thanks in adavnce for your input.
              Udit
              

              Venkat,
              Thats a good suggestion but these things are too obvious to ignore. We have different
              multicast address in DEV and PROD and also hosts are on different sub net. I do
              not know if cluster name will make any differene though.
              Thanks for your input anyway,
              Udit
              "venkat" <[email protected]> wrote:
              >
              >Udit,
              > You can check the sub net, multicast address and the cluster name.
              >If the dev
              >and prod servers are in the same sub net with same multicast address,
              >then change
              >the multicast and try.
              >
              >Venkat
              >"venkat" <[email protected]> wrote:
              >>
              >>Udit,
              >>
              >>
              >>"Udit Singh" <[email protected]> wrote:
              >>>
              >>>Kumar,
              >>>Thanks for the reply.
              >>>The situation is that managed server in DEV try to replicate the session
              >>>to a
              >>>managed server in PROD and TEST and vice versa.
              >>>Let us say our dev managed servers are running on abc01 and abc02 and
              >>>prod managed
              >>>servers are running on xyz01 and xyz02. All the managed servers are
              >>running
              >>>on
              >>>port 7005.
              >>>If I do the netstat on abc01 or abc02 I could the see established connections
              >>>between abc01/02 and xyz01/02.
              >>>Why is that happening? We are running 6.1SP2.
              >>>
              >>>Udit
              >>>
              >>>Kumar Allamraju <[email protected]> wrote:
              >>>>We do not restrict intercluster communication as of 61 SP3.
              >>>>Once we get the IP from the cookie, we can safely make a
              >>>>connection to the other clustered node. We were not checking
              >>>>if the server is part of the same cluster or not. This is
              >>>>already fixed in 7.x and 61 SP4(not yet released) If you are
              >>>>on 61 Sp2 or SP3 then you should contact support and
              >>>>reference CR # CR089798 to get a one off patch.
              >>>>
              >>>>Regardless, are you traversing from DEV to PROD cluster and
              >>>>vice-versa. If not then this problem shouldn't happen unless
              >>>>plugin is routing the request to wrong cluster.
              >>>>
              >>>>--
              >>>>Kumar
              >>>>
              >>>>Udit Singh wrote:
              >>>>> Hi All,
              >>>>> We have a weired problem going on for a while. We have a cluster
              >>configuration
              >>>>> with an admin server and two managed servers. We have the similar
              >>>configuration
              >>>>> in DEV, TEST and PROD. The problem is that the managed server members
              >>>>in DEV cluster
              >>>>> are making connections to managed servers which are member of PROD
              >>>>cluster for
              >>>>> session replication. The same way TEST servers are trying to connect
              >>>>to PROD and
              >>>>> DEV.
              >>>>> Has anyone seen this kind of problem before. BEA seems to be cluless
              >>>>so far.
              >>>>>
              >>>>> Thanks in adavnce for your input.
              >>>>> Udit
              >>>>
              >>>
              >>
              >
              

  • Adobe Connection Manager unable to connect to Adobe Servers

    Hello,
    I have found many threads for that topic, but non helped me solve my issue.
    I haven't been using my application in quite a few months. A few weeks ago I started again and always get the message that my membership could not be verified because it cannot connect to the Adobe Servers. I started the Application Manager and get the same message there.
    I tried everything in this document: http://helpx.adobe.com/x-productkb/policy-pricing/activation-network-issues.html and all steps are successful
    I tried to connect my laptop directly with the LAN cable to the modem, still no success
    I don't use any Proxies.
    I disabled my firewall and Antivirus, Spyware, etc. applications, still it says it cannot connect.
    I tried to download the Desktop Application, but also get the message it cannot connect to the servers.
    I really do not know what to check anymore. I have no problems with secure sites or anything else I am using.
    Any suggestions what else could be the problem?
    Side note: It says to set the clock correctly. What time yone does it check against? My Windows is German, he CC is German, I am in Germany and use the correct timezone. I often use the US formatting of numbers and date formats, because I need it hat way for work. I tried it with both US and German settings, though. Makes no difference.
    Thank you!

    If you are a home user then enable the Hidden admin, restart and try to update/activate. Check here for instructions on enable/disable Hidden admin : http://www.howtogeek.com/howto/windows-vista/enable-the-hidden-administrator-account-on-wi ndows-vista/
    If connected to corporate network then contact your IT department to see if Firewall or Proxy server is blocking the activation.
    Thanks!
    Ankit

  • Digital Editions could not connect to activation servers

    ADE will not connect to activation servers with either the computer or my Sony ereader.  Tells me to check internet connections.  They are fine.  Any ideas?

    Found this on a public library site so maybe you should uninstall ADE and reinstall with the kobo in.  I think you need to activate both the computer and the device
    before you download or borrow anything.  I think the trick is to activate the device before downloading but as that's too late reinstalling then activating might work.
    First things first, you should plugin the Kobo before attempting to install ADE.  It won't authorize the device properly unless it is already there.

  • Apps connecting to strange servers

    Hey guys,
    I use Little Snitch to monitor my outgoing connections. Recently I have noticed apps attempting to connect to peculiar servers.
    For example, I downloaded the Carbonite trial. During installation I noticed it wanted to connect to "justjared.com" - a celebrity gossip site. Additionally, 1Password wanted to connect to "timetobreak.com" and "glamourfox.com" - also celebrity sites.
    Can anyone shed some light?
    Thank you!

    It sounds like a bug/limitation in Little Snitch. These days, many web sites will share a single IP address, usually with some cloud hosting provider. Little Snitch can't tell the difference between the 600 domain names that match the single IP address. Read the details here.

  • Connecting to smb servers

    Will Yosemite address the Mavericks problem in connecting to smb servers?

    We have this problem in our office too.  Have talked to apple support, microsoft support, two different IT consulting companies, and multiple "techy" friends of the company - all to no avail.  Most seem to say the same thing "there's nothing wrong with your connection" - I suppose because technically it can still connect to the server.  But yes it IS a real PROBLEM! So here's the specifics on our end:
    MS Server 2012 - Multi volume/drive server managed by IT consultant, all service packs, patches, yada yada, etc. installed and functioning
    To connect (mount) - In finder, use command K to connect to server.  Address: smb://XXX.XXX.X.XX/Volume Name
    Enter credentials for access
    Spinning Wheel
    Eventually volume mounts.
    Try to open a folder - folder content empty.
    Wait 10 minutes or so, folder content populates.
    Open sub-folder
    folder content empty.
    Wait 10 minutes or so, folder content populates.
    and so on.
    Also drops connection completely if the screen saver comes on - then you have to start the process over.
    This was not how the system behaved previous to Mavericks update.
    Workarounds we have tried:
    Use cifs instead of smb - a bit faster but connection is still lost on sleep and folders still take a long time to populate.
    Use 3rd Party app like Pathfinder - works much better but really?! I have to pay $40 per user to do something the OS should already be doing at a basic minimum!
    Specify port 139 - trying this now - seems a bit faster but too soon to tell.
    Bottom line - I really hope this is addressed in Yosemite too - otherwise I'm going to wipe my system and go back to an earlier OS version.  fun.

  • 10.6.2 - Mail will not connect to POP servers

    For the last few days Mail has refused to connect to my POP mail servers (provided by oneandone.co.uk). It displays the spinning circles next to the inboxes and eventually a warning triangle. I can connect to the servers via webmail and other devices, though of course this is not a viable alternative.
    Do I have to reinstall Mail somehow? I don't see why going as far as reinstalling Snow Leopard should be required. I've tried numerous ports and authentication settings and nothing works.

    Neither of those things would be indicated -- the applications do not contain the User Account setup info, anyway, and reinstalling would not change that.
    Please click on Window in the menubar of the Mail window and choose Connection Doctor -- what does it report?
    Ernie

Maybe you are looking for

  • How can I get my wired LAN to share my iMac's wireless internet connection

    Hi. (sorry for the long-winded posting below. I really struggled to explain what I'm trying to do, but would really appreciate any help from people who can recognise what I'm aiming for!) I've seen several postings about sharing internet connection,

  • Error Starting Weblogic Server as a Win2K service

    Hi I am unable to start Weblogic Server 6.1 as a Windows 2000 Server service. Installation as NT service is successful and I used the password as "weblogic" for the system user. But then when I try to start the service it gives the following error co

  • Problem with warp tool and bitmap images

    While you apply warp tool to a bitmap image, the image becoming corrupted on each touch. Please check screen shot...

  • Preventing MITM via arp spoofing in ASA and IOS environment

    We use a pair of 5515-X in which we route all traffic. We have a couple of 3560G which we use as L2 switches. How can I secure my network to prevent clients from easily pose as the gateways in order to intercept traffic? I think PVLAN is out of the q

  • Printing the blocked PO in GTS

    Hello Experts,   I have created the Purchase Order and that has been blocked in GTS.  Still I am able to printout the PO and allowing me to send the fax for blocked PO.  If the PO is blocked in GTS, we don't want to allow to print the PO or send a fa