127.0.0.2 address appearing out of nowhere!

I made a trivial console-based chat application to learn RMI and the callback feature. It works when I run it at the same computer, but when I start the server part on the linux box and then try to connect to it with the client part (by specifying the server address 192.168.1.103 as argument) from windows i get this exception:
java.rmi.ConnectException: Connection refused to host: 127.0.0.2; nested excepti
on is:
java.net.ConnectException: Connection refused: connect
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:601)
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:198
at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:184)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:110)
at callback.ServerImpl_Stub.addClient(Unknown Source)
at callback.ClientMain.main(ClientMain.java:43)
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:519)
at java.net.Socket.connect(Socket.java:469)
at java.net.Socket.<init>(Socket.java:366)
at java.net.Socket.<init>(Socket.java:179)
at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirect
SocketFactory.java:22)
at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMaster
SocketFactory.java:128)
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:595)
... 5 more
...so where does this 127.0.0.2 address come from?! I can ping the machines from each other and the firewall on the linux is off. Java on both machines is java SE6
here are my interfaces:
public interface ServerInt extends Remote {
    public void addClient(ClientInt client) throws RemoteException;
    public void removeClient(ClientInt client) throws RemoteException;
    public void publish(String clientID, String msg) throws RemoteException;
public interface ClientInt extends Remote {
    public void notify(String msg) throws RemoteException;
    public String getID() throws RemoteException;
}and here are the main classes that manages objects which implement my remote interfaces (ClientImpl and ServerImpl):
public class ServerMain {
    /** Creates a new instance of ServerMain */
    public ServerMain() {
     * @param args the command line arguments
    public static void main(String[] args) {
        ServerImpl server = new ServerImpl();
        try {
            LocateRegistry.createRegistry(1099);
            ServerInt stub = (ServerInt)UnicastRemoteObject.exportObject(server, 0);
            Registry registry = LocateRegistry.getRegistry();
            registry.bind("MyServer", stub);
            System.err.println("Server ready");
        } catch (Exception ex) {
            ex.printStackTrace();
public class ClientMain {
    /** Creates a new instance of ClientMain */
    public ClientMain() {
     * @param args the command line arguments
    public static void main(String[] args) {
        String host = args[0];
        String clientName = args[1];
        ClientImpl client = new ClientImpl(clientName);
        try {
            Registry registry = LocateRegistry.getRegistry(host);
            ServerInt localStub = (ServerInt) registry.lookup("MyServer");
            UnicastRemoteObject.exportObject(client,0);
            localStub.addClient(client);
            BufferedReader keyboard = new BufferedReader(new InputStreamReader(System.in));
            String userInput = "";
            while(!userInput.equals("quit")){
                userInput = keyboard.readLine();
                localStub.publish(clientName, userInput);
            localStub.removeClient(client);
            UnicastRemoteObject.unexportObject(client, false);
            System.out.println("Connection to Server closed");
        } catch (Exception ex) {
            ex.printStackTrace();
}EDIT: the server is started with java -classpath D:/Java/ -Djava.rmi.server.codebase=file:D:/Java/ callback.ServerMain
and to connect with a client:
java -classpath D:/Java/ callback.ClientMain serverAddr myNick
Message was edited by:
dadox01

Sry I was away for the weekend; so the machine's hostname is "revers"; here is what's inside the /etc/hosts file:
# hosts This file describes a number of hostname-to-address
# mappings for the TCP/IP subsystem. It is mostly
# used at boot time, when no name servers are running.
# On small systems, this file can be used instead of a
# "named" name server.
# Syntax:
# IP-Address Full-Qualified-Hostname Short-Hostname
127.0.0.1 localhost
# special IPv6 addresses
::1 localhost ipv6-localhost ipv6-loopback
fe00::0 ipv6-localnet
ff00::0 ipv6-mcastprefix
ff02::1 ipv6-allnodes
ff02::2 ipv6-allrouters
ff02::3 ipv6-allhosts
127.0.0.2 revers revers
Btw I tried the app with another 2 pcs in another network, vista + xp and it worked fine.

Similar Messages

  • Black vertical bar with lines on Macbook pro screen Appeared out of nowhere

    I was working on my computer late at night. Like always.
    I went to bed, and left the computer on in it's screen saver , as I always do.
    When I woke up I had a black vertical bar on the screen about 1 1/2 inch thick with some flickering lines next to it.
    here is what it looks like: http://www.talkcitee.com/ourspaceimages//2coolcode/2coolcode.jpg
    I don't believe this to be a memory problem, I can take snapshots of the full screen, and I can hook up an external monitor with no problem. Also restarded PRAM plenty of times, etc.
    But this black bar appeared out of nowhere. As if one way my screen decided it was going to blow out on me out of nowhere. I've had this MacBook for 2 years.
    Question is, do you think the problem is:
    a) the screen
    b) connection / short problem to the screen inside the macbook
    I hope it's B , because they told me it would cost $800 to replace the screen which is stupid cus I can get a new macbook pro for less than that.
    I think there is a connectivity problem with the hardware , possibly a short, or something messed up with the wires or pins that link to the screen.
    I noticed after repeatedly opening and closing the macbook, there were some changes in the small flickering lines next the big bar, and some of them turned solid black.
    Has this happened to anybody else before?
    Message was edited by: Uhuru83

    Usually what happens is that over time the cable comes loose from the back. This happens because the enclosure within the hinge housing is quite tight and the LVDS cable has little room to move around. Because of the frequent opening and closing on the lid, the cable starts to move out of place try opening and closing it a few times and push it back very gently. You might see the line disappear or decrease slightly.

  • Bash console appeared out of nowhere in dock

    Hi,
    I have just had the Bash console appear out of nowhere on my dock. It doesn't show anything in history command. Im using Yosemite, am i safe?
    Also i installed Sopcast last week and I'm unable to delete, what do you think? connected? How can i delete this program? it won't drag to the trash!
    Regards,
    Darren

    Any third-party software that doesn't install by drag-and-drop into the Applications folder, and uninstall by drag-and-drop to the Trash, is a system modification.
    Whenever you remove system modifications, they must be removed completely, and the only way to do that is to use the uninstallation tool, if any, provided by the developers, or to follow their instructions. If the software has been incompletely removed, you may have to re-download or even reinstall it in order to finish the job.
    I never install system modifications myself, and except as stated in this comment, I don't know how to uninstall them. You'll have to do your own research to find that information.
    Here are some general guidelines to get you started. Suppose you want to remove something called “BrickMyMac” (a hypothetical example.) First, consult the product's Help menu, if there is one, for instructions. Finding none there, look on the developer's website, say www.brickmymac.com. (That may not be the actual name of the site; if necessary, search the Web for the product name.) If you don’t find anything on the website or in your search, contact the developer. While you're waiting for a response, download BrickMyMac.dmg and open it. There may be an application in there such as “Uninstall BrickMyMac.” If not, open “BrickMyMac.pkg” and look for an Uninstall button. The uninstaller might also be accessed by clicking the Customize button, if there is one.
    Back up all data before making any changes.
    You will generally have to restart the computer in order to complete an uninstallation. Until you do that, there may be no effect, or unpredictable effects.
    If you can’t remove software in any other way, you’ll have to erase and install OS X. Never install any third-party software unless you're sure you know how to uninstall it; otherwise you may create problems that are very hard to solve.
    Trying to remove complex system modifications by hunting for files by name often will not work and may make the problem worse. The same goes for "utilities" such as "AppCleaner" and the like that purport to remove software.

  • What's with the double window appearing out of nowhere in Address Book?

    There is one window visible all through the Time Machine process until the very end when suddenly a phantom Address book window appears.
    To recreate:
    Open Address Book
    Open Time Machine
    Scroll to the oldest address book window in TM
    Click Cancel
    TM returns to present and as TM quits the two windows appear.

    I duplicated this, and indeed, a second window shows up. However, it vanishes in less than a second on my machine. I believe it's the one shown while in Time Machine mode; apparently, when viewing the address book, Time Machine moves back to "real time" before closing the window, the opposite of what one usually sees. Are you saying that in your case, the second window stays open?
    Daniel

  • Bing search engine appearing out of nowhere (?)

    Earlier today, I noticed that the Bing search engine was listed as the most recent addition to the Firefox search bar in my main profile (note: there seem to be no other traces of Bing in Firefox, the address bar has NOT been hijacked etc.) I have removed it by now (without trying whether therewas anything strange about it beyond its appearance there) but can't help wondering how it got there.
    Further research in Windows Explorer suggests that the engine was installed on August 25 at 6:40pm, which -- again going by Windows Explorer info -- must have been about 25 minutes after 4.0b4 was installed and about 10 minutes after I first accessed this particular profile in 4.0b4.
    Unfortunately, I have no history left from that day and thus can't reproduce my browsing history; I also don't recall anything surprising and certainly didn't consciously add Bing. My system seems fine otherwise, and Kaspersky IS + NoScript + a very careful attitude towards browsing usually tend to do a great job at keeping my system clean. Does anyone have any ideas what this might have to do with, whether this might have appeared through "legit" channels? Thanks for any info!

    Maybe you have MS software that added it.<br />
    See [[Removing the Search Helper Extension and Bing Bar]]

  • Why did iMUNIZATOR page appear out of nowhere on Safari 3.1?

    I was accessing the food channel and iMUNIZATOR pop up page appeared. I read on google that this is because of a weakness of Safari. Do I have to do anything and is it harmful?

    It automatically open for me too when I was at foodnetwork.com. My guess is that it's something on their side. I sent them an email. We'll see what they have to say.

  • Welcome screen and setup appeared out of nowhere!

    I have G4 iMac, running 10.4.11. Upon logging out of my user, my iMac went to the welcome screen and the setup programme, as though I had just installed for the first time!
    I decided to shut the machine down and now, when I restart, I get the gray screen and the apple shows up, but then it hangs and the fans start running.
    HELP!!! What should I do?

    Whew, we've got at the very least some Disk Corruption, occasionally this will work...
    Safe Boot, (holding Shift key down at bootup), if it eventually boots, run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, reboot when it completes.
    (Safe boot may stay on the gray radian for a long time, let it go, it's trying to repair the Hard Drive.)
    If not, "Try Disk Utility
    1. Insert the Mac OS X Tiger Install disc that came with your computer, then restart the computer while holding the C key.
    2. When your computer finishes starting up from the disc, choose Disk Utility from the Installer menu. (In Mac OS X 10.4 or later, you must select your language first.)
    *Important: Do not click Continue in the first screen of the Installer. If you do, you must restart from the disc again to access Disk Utility.*
    3. Click the First Aid tab.
    4. Click the disclosure triangle to the left of the hard drive icon to display the names of your hard disk volumes and partitions.
    5. Select your Mac OS X volume.
    6. Click Repair. Disk Utility checks and repairs the disk."
    http://docs.info.apple.com/article.html?artnum=106214
    If the Diisk checks out but you cannot still boot up...
    Reset OS X Password Without an OS X CD...
    http://theappleblog.com/2008/06/22/reset-os-x-password-without-an-os-x-cd/
    Starts up like the first time you buy a new Mac, but after filling in all that info again, you should have access to the computer and the other Users & files will still be there... though I was just thinking, this new User probably shouldn't be the same name as an existing one.

  • Latin filler text appears out of nowhere

    I'm using InDesign for the first time to build a book. A book publisher has given me templates to use. My book has two kinds of pages, one for chapter title pages and the other for the pages within a chapter. I want each of the chapter title pages to have a unique color, which I apply.
    I just applied a color to the title page for Chapter 1. I succeeded in getting the color I wanted, but Latin filler text appeared under the color! I don't know how to make the words disappear. Can someone please explain what happened and tell me how to keep the color and get rid of the Latin text?

    I'm grateful for the replies. As a rookie user, I wasn't even aware that there were layers, or how to find the Layers panel. When I found it, I simply selected the Latin filler text and deleted it. The rest of the page remains intact.
    Even though the error is corrected, I still don't know how the text got there. It's not on the master page. It remains to be seen whether the text was added by an unwitting rookie blunder or is buried in the template and bound to resurface.
    PS. The decision to print in color — this is a book of flower photos — is quite apart from my "where did the text come from" and "how do I delete it" inquiries.

  • Clips appear out of nowhere

    Just finishing project. Went back to adjust a fade at the end of the project and now imovie seems to loop back to about the middle of the project and show previous slides imported complete with transitions.
    If you look at the end in timeline or photo view, there is nothing there. But when the project plays, they are there and they burn to the DVD too.
    Tried pasting and cutting but those chunks remain. Can't seem to delete what I can't see.
    Ideas?

    thanks. i did that and found the files/foders that i mentioned above
    i have 6 configuration folders, i guess the one titled Configuration is the latest
    in it i see
    FileCache.dat but do not see WinFileCache-********.dat
    i did open filecache.dat in notepad and i saw chinese characters
    should i delete that file?

  • Event Window has a new section that appeared out of nowhere

    Would like to remove this new section from the Event Window.  I have inserted a screen shot of the event window.  The section I want removed is the 3rd one (middle of screen and next to video picture).  How do I remove it?
    Currently, I have Final Cut Pro 10.6.8 with Snow Leopard operating system.

    Hi Tom,
    Thanks for responding.  I have inserted another screen shot to highlight the area I mean.

  • Mysterious "Installer" Process Appears Out of Nowhere, Causes Freeze

    Every now and then, my computer will start running slower and slower, to the point where it simply freezes.  Every time this occurs, and I manage to get into Activity Monitor before the works get totally gummed up, I find a process named "Installer" occupying gigabytes of RAM, with the total constantly increasing.  If I manage to force quit this process before the freeze the computer goes back to normal.  I have no idea what is causing this process to launch, or how to prevent it in the future, and would love to simply eliminate the process once and for all.  You can see the fatal process in the screenshot below.

    You can use Activity Monitor to stop that process. You need to change the "My Processes" pull-down to "All Processes." Otherwise some nasty culprits stay hidden.
    The file called "Processing" that tops you list concerns me more--I've not seen that one. I think you have some form of malware. The easiest way to diagnose is for you to show us a safe snapshot of your system config.
    Please download and install this free utility:
    http://www.etresoft.com/etrecheck
    It is secure and written by one of our most valued members to allow users to show details of their computer's configuration in Apple Support Communities without revealing any sensitive personal data.  Run the program and click the "Copy report to clipboard" button when it displays the results. Then return here and paste the report into a response to your initial post. It can often show if any harmful files/programs are dragging down your performance.
    The Memory info at the bottom of the screen shows you are starved for RAM, but we need to get of of these odd processes first before deciding to add RAM.

  • A new playlist titled "**** Off!" has appeared out of nowhere on my iTunes

    Well I'm the ONLY one who uses my comp...so nobody else put it on there. It's right underneath the "Purchased" playlist, and it has a dark blue icon with a music note in it, and a padlock in front of it. If I click it, on the top it acts as if it's trying to access something by saying "Loading **** Off!" Nothing happens...it doesn't load anything...and I can't even delete the playlist "**** Off!"
    So what is up with this? I just downloaded the new version of iTunes and all of a sudden that comes up.

    Cable Internet is often a shared network for a given neighborhood, so you're probably seeing someone in a different residence that just happens to be on your same network segment. But it is also possible that someone else is piggybacking on your wireless. It's always a good idea in general to secure your wireless network, so consult your router's documentation and get your network locked down.

  • When Messages.app refreshes conversations, messages appear out of chronological order.

    I'm also using an iPhone 5, all of my software is up to date. Conversations on the iPhone are in correct order. Most of the conversations are using my phone number, but some are using my email address. The issue appears with both. Is there an easy way to troubleshoot or solve?

    Hi,
    I admit you title reads
    When Messages.app refreshes conversations, messages appear out of chronological order.
    However the actual post reads.
    Conversations on the iPhone are in correct order. Most of the conversations are using my phone number, but some are using my email address. The issue appears with both.
    So I got the impression it was the actual Conversation (Left hand List) that was un-ordered or at least out of order.
    Form your Picture I see you did mean Messages.
    As I said in my reply most people reports that Quitting Messages and restarting the app does seem to sort this.
    Is this what you mean by "refreshes" or do you man something else such as looking at a conversation again or making the App the "front" app ?
      For the Points
    8:51 PM      Wednesday; February 6, 2013
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
      iMac 2.5Ghz 5i 2011 (Mountain Lion 10.8.2)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • Junk email addresses appearing in address book

    For some reason I have tons of junk email addresses appearing in my Mail address -- I have no idea how they got there. Here are just two examples, there are hundreds:
    Alexis Eldridge
    [email protected]
    or
    Gallo Poole
    [email protected]
    Does anyone know why this is happening and how to prevent it? Thanks!

    Well, yes, maybe. I'm a little paranoid -- I download in the regular user account, scan with clamxav, drop the scanned download into the admin dropbox, fast-user-switch to the admin account, move the download to an "installers" folder that I maintain, and install from the admin account. Log out and back in to the standard account. I guess, yeah, if you are doing forty separate software updates and upgrades every day, a process like mine is a little problematic. On the other hand, the Applications folder isn't writeable from a standard user account without authenticating as an administratively privileged user and I just don't do that.
    Actually, that may not quite be true. Although I don't operate that way, you could probably install from the standard user account by authenticating the installer as an admin user from within the standard user account. That kind of defeats the purpose, anyways, if the standard user account has been compromised by a hidden applescript keystroke logger or something, if such thing were to exist.
    Having a separate administrator and standard user account are a trade-off that you have to decide upon: are the added safety and security practices worth a loss of user experience convenience? Once you figure out, if you are able to figure out, how your Address Book started getting loaded up with rogue email addresses, you might be better able to make that determination for your own situation. Page 33 of the snow leopard security guide (http://images.apple.com/support/security/guides/docs/SnowLeopardSecurity_Configv10.6.pdf) recommends having separate administrator and daily use accounts. But, in the end, that's your call. The guide tells you how to lock your computer down so tightly that it's almost worthless.
    With regards to anti-malware, your best bet is to see what respected sites like macworld and others have to say, and just do some google searches. I'm in no position to make a recommendation. With clamxav, which is what I use, the price is right but I can't say how proactive a freeware/donationware anti-malware entity might be when that new occasional Mac malware comes out.
    While I have suggested you performing an anti-MacMalware scan, that may or may not resolve your issue, and offer up some thoughts on future operating practices that really don't help you now, I can only wish you good luck on solving your AddressBook problem. Please post back when you do, I'm sure everyone here would like to be made aware of what and how it happened, and what they can do to do to prevent it.

  • TA22652 I purchased a new iPad and my daughter uses my iPad. On my account her email address appears. How can I get my account back?

    I purchased a new iPad and my old iPad went to my daughter. I have a problem though in that my iTunes account has been taken over by her email address. If I want to redeem a voucher on my account her email address appears. How do I correct this?

    Did you take a backup in between taking the photos and deleting them ? If you did then try restoring to that backup (you will need to restore the whole iPad, you can't just do the Photos app) and they should be put back.
    Backups and restores : http://support.apple.com/kb/HT4079
    When you create new albums directly on your iPad and 'copy' photos into them you are effectively just creating pointers to the orginal photos, you aren't creating copies of the photos - so if you then delete the original photo you will also be deleting all pointers to and therefore be removing it from all albums that you've copied it into (you should have got a warning when deleting the photo that that would happen).

Maybe you are looking for