Client not connecting to server. please help

I have been trying to run a sample client-server program, but it doesn't seem to reconise the host name that has been declared in the client program.
i get the following error:
Client Error: java.net.UnknownHostException: Paradoxical
can anyone tell me what the host name should be to allow the client to connect to the server????
bellow the server code:
import java.io.*;
import java.net.*;
* <p>This class doesn't actually deal with the client, it simply
* spawns ClientHandlers that cope with all the i/o.
* @author Stephen Dolphin 01972612
* @see ClientHandler
public class Server {
* Attribute holding the server's listening port number.
private static int portNumber = 80;
* This is this class' only method. It simply waits for requests
* on the given port until it hears something, and then it spawns
* a new handler.
public static void main(String[] args)
// the initial handler number
int socketNumber = 1;
try
ServerSocket server = new ServerSocket(portNumber);
System.out.println("Coffee Pot Server running!");
System.out.println("Waiting for connections on " + portNumber);
// continuous loop
while (true)
// wait for request...
Socket clientSocket = server.accept();
// when received, start new handler!
new ClientHandler(clientSocket, socketNumber).start();
// increment ready for next time.
socketNumber++;
} // while(true)
catch (Exception e)
// catch all errors, and, display string
System.out.println("Server Error: " + e.toString());
} // trycatch
} // main(String[])
} // Server{}

The host name to use for the client is the name of the machine that the server is running on. From your error message, the client expects the server to run on 'Paradoxical' but it can't find a machine with that name. You might try to use 'ping Paradoxical' to verify that the machine exists.
If your server is running on the same machine as the client, you can just use 'localhost' as the host name.

Similar Messages

  • I'm trying to set up my new iPhone 5s from a backup of my previous iPhone, when trying to enter my Facebook login info in settings I keep getting the following error message : error signing in could not communicate with server, please help !

    I'm trying to set up my new iPhone 5s from a backup of my previous iPhone, when trying to enter my Facebook login info in settings I keep getting the following error message : error signing in could not communicate with server, please help !

    Can you access other apps? Can you acess the internet? Can you access applications that use internet besides facebook?
    If answer is yes to all of these; contact Facebook.

  • I have MacBookpro with OSX 10.9, and my Tata Photon plus  is not working on it. When I try to connect, Its not connecting.. Please Help

    I have a MacBookPro with OSX 10.9, and my Tata Photon plus  is not working on it. When I try to connect, Its not connecting.. Please Help
    <Email Edited by Host>

    Current Firefox versions require a Mac with an Intel processor and OS X 10.6 (Firefox 16 runs on Intel Mac OS X 10.5).
    *http://www.mozilla.org/firefox/25.0/system-requirements/
    For an unofficial Firefox 17.0.10 ESR compatible version that runs on a PowerPC Mac with OS X 10.4.11 or OS X 10.5.8 you can look at TenFourFox.
    *http://www.floodgap.com/software/tenfourfox/
    *http://www.macupdate.com/app/mac/37761/tenfourfox
    *http://code.google.com/p/tenfourfox/wiki/ReleaseNotes1710
    See also:
    *http://code.google.com/p/tenfourfox/wiki/PluginsNoLongerSupported
    *http://code.google.com/p/tenfourfox/wiki/QuickTimeEnabler
    *http://code.google.com/p/tenfourfox/wiki/AAATheFAQ

  • Client Not connected with Server

    Hi Experts
    I upgraded my Patch level from 9.0 PL8 to PL9.  Server and Clients are installed and it is working fine but one PC not connected with Server.  While I Connect SAP in landscape server selection Page Port Number shown as 40000 instead of 30000.   I changed Port No from 40000 to 30000 the error Message came as  [message 60070-99999987}.  I attached the Screen shot in this discussion.
    Please help me to resolve this issue.
    With Regards
    Balaji Sampath

    I have same problem and this is the solution
    Go to the directory C:\Program Files (x86)\SAP\SAP Business One\Conf
    Copy the file b1-current-user.xml and put it aside
    Go to the directory %USERPROFILE%\Local Settings\Application Data\SAP\SAP Business One
    Check the file b1-current-user.xml which is likely empty or wrong strings
    Rename the b1-current-user.xml file for backup
    Move the copied file into the directory.
    License server name asked every time on login

  • HT4864 I just updated my iphone to the new version and it won't let me connect to ICloud- it says can not connect to server. HELP!

    I just updated my iphone to the new version. I keep getting a msg stating ICloud can not connect to server. I have turned off the phone several time- no luck. Help!!

    You are very welcome! I'm glad it worked for you!

  • Client not connecting to Server

    I finally was able to get the client installed. Now I'm getting the
    following error when I try to authenticate:
    Description: Cannot connect to server. [My_Tree].
    Error: NWCCOpenConnByName: NWE SERVER NOT FOUND
    Code: 8847
    Build: 1.0.0
    File: ncpConnection2.cpp
    Line: 167
    Repsitory Version: $Revision: 1.11 $
    I double checked the Scope, and I also tried putting in the IP address of
    the server in the DA field. ... DNS, NCP, and SLP are all checked by
    default. How do I fix this?
    By the way, I can run ConsoleOne with no problem. In ConsoleOne, I use the
    IP address of the Server in the "Tree" field.
    thanks for all the help...

    iwill_notbow,
    Are you able to login using the ip address or dns name of the server in
    the Tree name filed and by specifying your Full DN, that is, '.admin.org'?
    Niclas Ekstedt, CNA/CNE/CNS/CLS
    Network Consultant/NSC Sysop
    InfraSystems Solutions

  • MBP will not connect to internet PLEASE HELP;)

    I have a MBP that will not connect to the internet. The airport shows an ip, but shows failed for internet and server. I have another laptop, desktop, ipad 2&3, iphone and 3 ipods connected to wifi and work flawlessly. I called the ISP and spoke with them for about 2 hours and they say all settings are right, and they can even see the MBP on their end.  Can someone please help me, thanks in advance.
    Wanted to add, i cannot connect with ethernet either, wired directly to modem by bypassing router.

    Your MacBook Pro does "see" your router, so it's either a problem with the passphrase (in this case, Ethernet shouldn't be affected, but it is), and you can bypass it by entering your passphrase again, preceded by the "$" sign (no quotes), or for some reason the MAC addresses of both your Airport and Ethernet chips on the MacBook Pro aren't cleared by the router. If you have MAC filtering enabled on the router, disable it, or if you must press some handshake button on the router, first disable Airport on your MBP, then presss the handshake button on the router, then enable Airport on the Mac again.
    My money's on the MAC address filtering, though... There could be a certain number of possible MAC addresses the router can accept, and adding new devices in the household may have pushed your MBP out of the winners list somehow.

  • IPod Touch will not connect to iTunes, please help..

    I purchased an iPod Touch yesterday. I synced it up to iTunes, everything fine. After disconnecting and then reconnecting later I found that the computer didn't recongize it and it did nothing but charge the iPod. I've tried many times, all to either have it do nothing, crash iTunes, or give me the message "iTunes could not connect to the iPhone because of an unknown error (0xE8000001)". I've tried reinstalling iTunes, the whole Apple Device Service, the USB problems.. everything. I have USB 2.0, Version 1.1.2 of the iPod, and iTunes version 7.5. Please, please try and answer my problem.
    I've also restored using a friends computer, it works fine the first sync after I restore on his comp, but after that it does what I described above.
    Please help

    I was having the same problem but what I made was:
    Conect iPod Touch into a USB port but from the back of the PC
    Then *shut dawn* the iPod no lock *shut dawn*
    then reinstall iTunes (it has to be iTunes 7.5 o later)
    open iTunes
    turn on iPod Touch
    and it most work
    o restart your PC and try again

  • IPod is not connecting with iTunes - please help

    When I plug in my iPod into the computer, it is not connecting. I thought it was the cable at first, but it is not because I've tried different ones. Please help!

    Have you tried the 5R's with the iPod?
    Repair permissions with Disk Utility.
    Charging or not - try another cable.
    MJ

  • Iphone 4 will not connect to PC Please Help!

    My wifes Iphone 4 is not detected by my pc.
    I have tried with USB cable and Firewire cable from my old ipod. My old ipod connects and syncs fine with both cables.
    The iphone will connect to my old laptop (xp) via USB,  so the problems appeares to be my PC.
    I have tried windows Vista. and recently updated to Windows 7, clean install and still the iphone will not connect. I also had the very same problem with and Ipod touch, which i returned as faulty :\.
    When i plug the iphone in I get nothing on the phone and nothing on the pc. I have already tried reseting/restoring the iphone. rebooting pc. fiddling with the apple mobile device service etc but no joy. Itunes is obviosly installed and uptodate. have also tried removing all other usb devices.
    So its my PC but why? when everything else USB works without fail Why wont this piece of crap connect?
    My pc is running Windows 7 64bit 4GB on a Quad core processor. Not brand new but not some ancient piece of scrap either.
    Please help!

    I upgraded over the air with no problems at first.  It does seem to fix my fast battery drain (iphone 4, not 4s) problem that I was having.   However, now my mobile internet is EXTREMELY SLOW... even wifi seems to drag.  Anyone got a fix?

  • Since system update my emails wont connect to server- Please help

    My emails have worked fince since owning this phone, but as of 5/6 days ago the emails will no longer work. s
    I have looked at the settings and still says cant connect to server, so I deleted the account from the phone to then reinstall. But now it wont connect at all and I get the error message could not open conection to server. I have also tried entering manually but still have no luck. I had a system update around the same sort of time so I ma unsure if this has effected things.
    I have had to open the Hotmail app from the play stor in the mean time, but would like to get the phone working as it should as this had an email time setting so I wasnt disterbed by junk mail in the evening/night.
    Please can someone advise.
    Thank Jenny

    Hi and welcome to the community! Since you're new please be sure that you have checked out our Discussion guidelines.
    First try clearing data for the email app under Settings -> Apps -> All -> Email -> Clear data and then restart the phone. When you then open the email app it will ask for your email address and password. Enter those but select manual setup, Exchange ActiveSync and then use m.hotmail.com as server address, your email address as user name and see if that works.
     - Official Sony Xperia Support Staff
    If you're new to our forums make sure that you have read our Discussion guidelines.
    If you want to get in touch with the local support team for your country please visit our contact page.

  • Lookout 6.5 clients not connecting to server

    I just completed upgrading my primary and secondary servers to Lookout 6.5 from Lookout 6.2. I still have a number of clients out there running Lookout 6.2, and they are working fine.
    However, the secondary which is running 6.5 development and one other new computer which is running 6.5 web client are not able to connect to the primary server (red Xs everywhere). Both machines are running Windows XP SP3, and the windows firewall is off on both machines.
    On the secondary, I can ping the primary, and in object explorer I can get to the process file on the primary, but when I click on it, I get the hour glass and then nothing (same thing goes when I try to access symbolic link in the client process).
    I have already uninstalled and reinstalled Lookout 6.5 once.
    Any suggestions would be greatly appreciated.
    Jason Phillips

    I did as you recommended and the tag monitor did not work. Since I have the windows firewall disabled on my machines, I decided to look at the ports on the primary server using the netstat command. I have 3 computers, other than the primary server, running Logos 5.1 rather than Logos 5.0. This is important because as you can see in the attachment, the computers that are running the newer version of Logos (whether with 6.2 or 6.5) are having a problem with port usage. When ports associated with these computers go in to the "CLOSE_WAIT" state, my problems begin on the primary server and the 3 other computers running Logos 5.1. On my primary server I cannot access the network link in Object Explorer and when I shut Lookout down on the primary server, Lookout hangs. If I open Lookout on the the primary server and then shut it down before I get any CLOSE_WAIT states, Lookout does not hang. The only way to get rid of these "CLOSE_WAIT" states is to shut Lookout down on the server. On the three computers running Logos 5.1, I cannot access my symbolic links nor the network link. Also, these 3 computers show the "CLOSE_WAIT" state on the ports they are using to connect to the primary server. Also, these CLOSE_WAIT states appear to accumulate over time on the primary server for the ports being used by Logos 5.1.
    From researching the CLOSE_WAIT state on the internet, this state is caused by the application in question, i.e., Logos.
    I do not see this state occurring on any other ports associated with clients running Lookout 6.2 with Logos 5.0.
    Information on my server: Dell Precision 690 Mini-Tower Quad Core Xeon Proc E5345 2.33GHz, 2 X 4MB L2 Cache 1333MHz , 4GB RAM
    Help!!
    Thanks!
    Jason Phillips
    Attachments:
    netstat port data.jpg ‏351 KB

  • MY IPOD NOT CONNECTING TO ITUNES PLEASE HELP

    Okay,, soo my ipod nano 3rd gen, wont connect to my iTunes. it will only come up in a window in my computer. now, i searched help on the apple sight but when it gets the point where it asks me to start the itunes service again, a error code comes up saying it wont allow me to start it. what should i do?

    Ok, so I was finally able to fix this issue with my ipod. Here's what I did.
    I received the problem on my computer running vista. I decided to hook up my ipod to my friend's macbook. Lo and behold, iTunes recognized it and I received an error saying that the firmware was corrupt. I was able to restore the firmware on my ipod and it worked fine after that. I took it back to my vista computer and it said that my ipod was using mac firmware and if I wanted to delete everything and change to windows firmware and it worked (even though my computer was running 8.1).
    Now, I'm not sure if it was osx or maybe the older version of itunes that fixed my issue (my friend was running itunes 8.02 or something), but I suggest if you're having this problem, take it to the apple store and connect with one of their macs and see if you can update the corrupt firmware.
    I hope this helps. This issue was really frustrating for me and I hope apple fixes this quickly because I see many people with this problem here.

  • Cannot Connect to Server - Please Help!

    I have a MacBook w/Leopard and Parallels w/Windows XP. Everything has been working fine for over a year. After a recent trip (and using several different motel wifi connections) I cannot connect to our Windows based home server. The server is primarily used for printer sharing. I can connect and print on the Windows "side" of my Mac, but not on the Mac itself. Server connection attempts return the "Connection failed" message and print attempts return "Connection failed: NTSTATUS_BAD_NETWORKNAME", then "Unable to connect to CIFS host, will retry in 60 seconds...". I cannot understand how I can connect and print w/Windows (which is running on my Mac) but cannot connect or print with the Mac. I have restored my hard drive from Time Machine, checked the server network ID and just about everything else I can think of.
    Any advice or suggestions will be greatly appreciated!

    Still unable to print/connect from the Mac and able to print/connect from Parallels/Windows. Internet functionality is normal on both.
    Any ideas???

  • TS3988 I can't find where to accept the new terms for icloud, when I click on settings go to icloud and click it says unable to connect to server please help

    Help!! I can't get my icloud account to work? what am I doing wrong?

    Try deleting the account, then sign back in.

Maybe you are looking for

  • Windows not recognizing iPod mini

    When I connect my iPod mini to my computer, nothing happens. It is not recognized by iTunes or explorer. I can get the iPod to charge if I reset it while it's plugged in, but otherwise nothing happens. I tried plugging it in to an old laptop that I h

  • Problem in PRD to display check box parameter on selection screen

    hi ,         i had one problem, i created one report which will show customer advances, for this report i created one selection screen, i transport req to QAS and PRD it shows fine. after that i need to add one more check box to that report selection

  • What is lost when syncing to new computer?

    I know questions like this are asked all the time but I'm not sure exactly what to search for so I figured I'd just create a new post. When syncing to a new computer, what exactly is removed from the iPhone. I don't really care if I lose all of my mu

  • Classic tween saturation property not animating like in total training video

    John Ulliman uses actionScript3 with Flash CS3 and I have Flash CS5 which is the main difference. It appears he uses a classic tween (from CS4 and CS5's perspective). I have a thumbnail which is created as a movie symbol and when I double click on th

  • Email attachments not showing up in email

    Hi, I am using a Z10 and one problem keep me from doing my work. For some reason my emailattachments are not being downloaded. They don't even show up in the email. They only for me to know whether the email contains an attachment is based on the sen