Small rmi program opens several ports; what and why?

Hello,
I'm a bit confused about my small rmi program.
It seems that more ports are opened than I expected, which could give firewall-problems if we're not careful.
You can see below
- my testprogram.
- opend ports when my server app starts
fyi: my rmiregistry was opened on port 1091 and there is no client connected yet
  Proto  Local Address          Foreign Address        State
  TCP    0.0.0.0:220            0.0.0.0:0              LISTENING
  TCP    0.0.0.0:1091           0.0.0.0:0              LISTENING
  TCP    127.0.0.1:1091         127.0.0.1:2170         ESTABLISHED
  TCP    127.0.0.1:2170         127.0.0.1:1091         ESTABLISHED
  TCP    172.21.4.241:220       172.21.4.241:2171      ESTABLISHED
  TCP    172.21.4.241:2171      172.21.4.241:220       ESTABLISHEDdifferences:
- i see a listening connection on port 220 and 1091; i understand this
- i see a connection from 1091 to 2170 and vice versa; 1091 is my rmi registry. why is there suddenly an active connection with 2170 ? Can I avoid this or should'nt it disappear after the object is bound ?
- i see a connection from 220 to 2171 and vice versa; 220 is my exported object, but why is there suddenly an active connection with 2171 ? Can I avoid this or should'nt it disappear after the object is bound ?
public class rmisockettester {
     public static void main(String[] args) throws Exception {
         int port = 1091;
         String hostName = "localhost";
          System.out.println("start");
        System.setSecurityManager(new RMISecurityManager());
        String hostname="127.0.0.1";
        String rmiName = "//" + hostName + ":" + port + "/" + "serv2";
        System.out.print("Binding \"" + rmiName + "\"....");
        serverclock tsi = new serverclock();
        Naming.bind(rmiName, tsi);
        System.out.println("binding done");
        Thread.sleep(10000);
          System.out.println("end");
public class serverclock  extends UnicastRemoteObject implements serverclockinterface
    public serverclock()
    throws Exception
         super(220);
    public int setTime(Date d)
         return 9;
public interface serverclockinterface
    public int setTime(Date d)
    throws RemoteException;
}

I'm a bit confused about my small rmi program.
It seems that more ports are opened than I expected, which could give firewall-problems if we're not careful.
- i see a listening connection on port 220 and 1091; i understand thisGood.
- i see a connection from 1091 to 2170 and vice versa; 1091 is my rmi registry. why is there suddenly an active connection with 2170 ?That happens when the client connects to the Registry. I don't know why you think that's unexpected. This particular connection may be for DGC purposes, but there is nothing harmful or unexpected about it. Or it may be a client connection. Which is the entire purpose of the exercise.
Can I avoid thisWhy would you want to avoid it?
or should'nt it disappear after the object is bound ?Why?
why is there suddenly an active connection with 2171 ?Either also for DGC purposes or for a client connection. Why do you think this is a problem?
Can I avoid thisWhy would you want to avoid it?
or should'nt it disappear after the object is bound ?Why?
     super(220);Why are you using a reserved port number here? Port 220 is reserved for IMAP v3 servers. See [RFC 1700|http://www.ietf.org/rfc/rfc1700.txt]. Use a port number above 1024 please.
I think you're getting confused because you're running the server and the client on the same host. Run them on separate hosts, then running netstat on the server host will give you a much clearer picture.

Similar Messages

  • Can anybody say why In the layer menu the background color is white when opening a layer mask, and why does it automatically turns black by simply opening the layer mask properties menu? The vector mask is white anyway.

    Can anybody say why In the layer menu, the background color is white when opening a layer mask, and why does it automatically turns black by simply opening the layer mask properties menu? The vector mask is white anyway.

    Topic or subject titles should be clear, pertinent and concise so that individual users can tell at a glance if they can help or not.
    That field is not for attempting to fit your entire question in there.
    Please keep this in mind next time you post.  Thank you.
    A lot more information about your hardware and software is needed.
    BOILERPLATE TEXT:
    If you give complete and detailed information about your setup and the issue at hand,
    such as your platform (Mac or Win),
    exact versions of your OS, of Photoshop (not just "CC", but something like CC2014.v.2.2) and of Bridge,
    your settings in Photoshop > Preference > Performance
    the type of file you were working on,
    machine specs, such as total installed RAM, scratch file HDs, total available HD space, video card specs, including total VRAM installed,
    what troubleshooting steps you have taken so far,
    what error message(s) you receive,
    if having issues opening raw files also the exact camera make and model that generated them,
    if you're having printing issues, indicate the exact make and model of your printer, paper size, image dimensions in pixels (so many pixels wide by so many pixels high). if going through a RIP, specify that too.
    a screen shot of your settings or of the image could be very helpful too,
    etc.,
    someone may be able to help you (not necessarily this poster, who is not a Windows user).
    Please read this FAQ for advice on how to ask your questions correctly for quicker and better answers:
    http://forums.adobe.com/thread/419981?tstart=0
    Thanks!

  • DVD's from IDVD no longer work in a Blue-Ray DVR for television.  Who changed what and why?

    DVD's from IDVD no longer work in a Blue-Ray DVR for television.  Who changed what and why?

    Hi
    What BRAND of the DVD used ?
    What type of DVD ? SL-DVD-R or DL-DVD-+RW or ?
    Burn Speed ? Did Yo set it down ? I do to x2
    Cleaning DVD disk (not with liquid but the ones with brushes) - I use from time to time ?
    Free Space on Start-Up (Maintosh HD) - How much ?
    Yours Bengt W

  • Want new tab to open to home page and why does firefox not have a simple check box in the options because I can't keep going through a long procedure each time

    I want new tab to open to home page and why does firefox not have a simple check box in the options because I can't keep going through the long tedious procedure each time I install firefox. It is something that should be in the options tab , and I want to know why it isn't. I am totally frustrated with firefox and getting ready to switch.

    You can use the SearchReset extension to reset some preferences to the default values.
    *https://addons.mozilla.org/firefox/addon/searchreset/
    Note that the SearchReset extension only runs once and then uninstalls automatically, so it won't show on the "Firefox > Add-ons" page (about:addons).
    If you do not keep changes after a restart or otherwise have problems with preferences, see:
    *http://kb.mozillazine.org/Preferences_not_saved

  • How to Open Several Ports to Host a Game

    Hi, I'm trying to host an internet game that requires several ports using UDP.
    What is the proper syntax to open up a range of ports and then several other specific ones all for the same application? Can I list them all in the Public UDP Port(s) box like this: *5120-5300, 6500, 6667, 27900, 28900* ?
    Is it really necessary to bypass DHCP and assign a Static IP? What if I check to see what IP DHCP has given me and then put that into Airport?

    Well, I did some searching on the game's technical support forum, and came across this excellent port forwarding website: www.portforward.com
    They give instructions for an extensive list of routers, of which the Airport Extreme is one: http://www.portforward.com/routers.htm
    They also list a ton of applications, the ports they use, and how to configure your chosen router to use them. Here's what they say about the Airport Extreme:
    "The AirPortExtreme will not allow you to forward enough ports, to run Neverwinter Nights. You should try using the DMZ portion of this router if it is available. Alternatively you can try switching the router to bridged mode. You will need to contact your ISP to switch to bridged mode, so they can make the required changed on their end. "
    It looks like I'll have to try the DMZ approach as the second poster suggested. Bummer.

  • Apple Application Support - What and why does this exists?

    So I welcomed iTunes 9 on my computer and iOS4 on my music player (latter to a great commonly known regret). Now here is my question:
    What is the "Apple Application Support" and why iTunes 9 must have it to run?
    (Note: Normally many software products there have optional modules which one may wish or may not wish to install depending on required functionality.)
    P.S. I did my Google "homework", so please kindly advise here substantively.

    See the second half of the following user tip for some information about what Apple Application Support is:
    [iTunes for Windows, QuickTime, and Apple Application Support|http://discussions.apple.com/thread.jspa?threadID=2355263]
    The MobileMe Control Panel for Windows also uses Apple Application Support nowadays, as per:
    [MobileMe: "CoreFoundation.dll was not found" or " Apple Application Support is missing" alert|http://support.apple.com/kb/TS2211]

  • When I open several Raw files and edit one, the others disappear

    Sometimes I open numerous raw files simultaneously and they appear on the left in a sidebar. Then I choose one to edit and when finished the others have disappeared and I have to load them again. Is there a keystroke that will bring them back without entirely reloading? Are they still in PSE but hidden? This seems like peculiar and poor design. (Mac version)

    Using Preview is quite simple. I open the group of files I want to view and edit. I select one and drag it on top of the PSE icon in the dock, and it opens in the PSE raw editor. When I've saved the file I simply click on the Preview dock icon to return to that app. and repeat the select-and-drag to PSE. Preview provides a full screen display of file icons for the files I want to edit, so it is quite quick and transparent.
    I don't necessarily want to Open a file; I might simply Save it from the raw editor. If I have 10 raw files, five of which I want to edit and Open, 3 of which I don't want to edit, and 2 of which I want to Save within the raw editor, the simplicity you describe disappears. Using my Preview-to-PSE scheme, I work on one file at a time and dispose of it when done. I don't have to keep track of which file needs what disposition, as seems to be the case in the process you describe. Please correct me where I'm mistaken.

  • Apparently I need to open several ports on my Airport Extreme to be able to chat on Xbox One.

    Can anyone tell me how to open ports Here are the ports I need open:
          88 UDP
         3074 UDP and TCP
         53 UDP and TCP
         80 TCP
         500 UDP
         3544 UDP
         4500 UDP

    select Airport extreme, click modify, then network then change the router mode to DHCP and NAT, then add your ports in the ports section.

  • PCI cards, Airport cards...help me understand what is what and why?

    Help me understand this wireless network "card" hardware stuff.
    I have a dual 867 MHz G4 that I want to set up for networking with a PC so that both machines can access the internet (via DSL).
    As far as I know, my Mac does not have an airport card of any kind. I'm planning to buy a Lynksys WRT 54G2 wireless router. Do I need to also install an airport card, or PCI card in my G4 to make this all happen? And, if so, what is recommended that will work with my G4?
    The guys at the Apple store are telling me that all I need is a wireless router, and don't have to install anything extra, but what I'm reading on these various networking threads, is that just the G4 and a wireless router will not do the trick. After reading lots of threads here, it's sounding like I have to jump through hoops to set up a usable, working network. The Apple guy says that this is easy and basic. I'm thinking that THEY are thinking in terms of a newer machine, maybe? They're all young guys who probably think that nothing goes back farther than the iMac.
    One thing the Apple guys were pushing is Airport Extreme, but at $180, I somehow thing I can get there for much less than that.
    To make a long story short (hah...too late for that), what exactly do I need as far as a card, router, etc., and where do I get the right stuff (links would be helpful) to set up a Mac/PC network using my old decrepit G4?

    Hi-
    Networking Macs and PCs
    Setup a Home Network
    Create a small Ethernet network
    MacWireless
    Check the above links, and you will be better educated in the basics and requirements of various networks.
    The easiest, and least hardware intensive is the Ethernet network. Also, Ethernet is fast.
    A note about Airport; you machine only accepts standard 802.11b Airport cards. In a word, very slow.
    Airport Extreme, or 802.11g, is much faster, and 802.11n is the fastest available. To get 802.11g or 802.11n in your machine will require a PCI adapter.

  • Why does the Welcome to firefox tab open with my google tab every time I open the browser? And why can't the browser hold any add-ons I downloaded? I loose then when I close the browser, even tool bars have to be reinstalled every time I open the browser

    Every time I open the browser the Welcome to Firefox tab is the first tab, then a second tab opens and thats my google, then a 3rd tab opens for me to reinstall my toolbar. This has been happening for a good year. Updates have not fixed it. Others have this problem. I did a search for an answer, the question is out there but no answer. Now if I go into add ons and add a background Theme or an extension it all is gone when I exit the browser. When I open the browser again I get all 3 tabs and have to install my toolbar again. I DO NOT want to reinstall as I will loose all my saved data, passwords, bookmarks, everything! I have had this computer for a year, Windows Vista x64 bit. Its not the computer, it's the browser. If you have specific questions e-mail me and I will be more then happy to help

    See this article for some suggestions: [[Firefox has just updated tab shows each time you start Firefox]]
    See also http://kb.mozillazine.org/Preferences_not_saved and Preferences are not saved

  • Each time I click the "Open a New Tab" button, how do I make FF open to my homepage and why isn't this default behavior?

    Firefox does not default to your homepage when you manually open a new tab. It should do so.
    Is there a way to make FF do this? Is it an addon? If so, should this not be default behavior and just be incorporated into the browser?

    # Type ''about:config'' in Firefox's location bar
    # Find ''browser.newtab.url''
    # Double click on it
    # Paste your homepage link into the text box
    # Click ''Ok''

  • "Artwork Not Modifiable"?  What and why?

    This is horrible.  It makes me not want to upgrade any new Apple software to newer versions -- they just add restrictions.  This one is nowhere mentioned in the iTunes "Help" feature.

    I just noticed this problem one of my albums. It was interesting because only three of 20 songs were affected and nothing about them seemed different from those that had artwork (same format, ripped from the same CD at the same time). The artwork preview window in the lower left corner had the "Artwork Not Modifiable" message you described, and when looking at the song's info the Artwork tab was greyed out.
    The workaround I found was this: First copy the artwork you desire to your clipboard, using Command+C. Then select multiple songs, at least one of which had unmodifiable artwork and at least one that had the appropriate artwork. I clicked Command+I (Get Info), which when multiple items are selected gives you a place to put artwork in the Info tab. I selected the artwork area and clicked Command+V to paste the artwork, then clicked OK. Seems to have worked each time so far.
    Good luck!

  • How to open ports 119 and 443 in my Mac?

    I've been trying to use the UseNeXT software with my Mac with no success. I called their support and they told me I need to open the ports 119 and 443. I contact Apple support and they told me that is beyond their scope (???).
    Can somebody help me with that? I tried to find it online, but all tutorials that i tried didn't work or are outdated.
    Thanks

    Hi Drew,
    It probably depends on the router as to the method used to open the ports.
    As I have said elsewhere in the thread the first 1024 ports are open in most router to allow things to work Out of the Box such as Mail (110, 25, 567, 569, 995, 996 and many more ) and web Browsing (port 80 mostly but secure site can use 443) FTP (21 and 22) to name some.
    Port Forwarding is one way to open some of the ports for One IP (computer).
    Most routers have  table for doing this and this can be limited as to the number of ports included.
    This Linksys pic shows how to do it for some as it allows groups based on Start and end ports. However it restricts it to one IP
    DMZ is a form of Extreme Port Forwarding that opens all 65535 ports to one IP (Computer)
    In both the above cases other computers (IP addresses) are excluded from using the ports.
    Port Triggering doe allow multiple computers to access the same Port but requires that you know the lead  - Trigger - port involved for each app.
    It is limited by the table size for your particular router.
    Same Router in Trigger ports for iChat 3
    Most router come with UPnP nowadays.
    It is an ON/Off setting that allows the apps on the computer to say which ports are needed and when.
    On some you can reduce the time to live  and the Hop amounts.
    The ports stay open from a period of normally 30 mins after non use.
    This can be changed.
    It also tends to list the number of Hops (the number of devices beyond the UPnP device) that it can be heard.
    My Sky Hub
    I have no other router on my network but I do sometimes use Internet Sharing between two computers hence the 2 Hops.
    Every other device is only one Hop away from the the router.
    There are concerns that the "Advertisement" is seen upstream (internet side) as well as device downstream.
    The Concern is that this could be Up to your ISP and then down to the "next" IP end user on the particular router/server at the ISP end.
    I have seen no evidence of this being the case.
    Hope this helps.
    8:45 pm      Monday; May 5, 2014
    ​  iMac 2.5Ghz i5 2011 (Mavericks 10.9)
     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

  • What does "The operation could not be completed because an error occurred when creating frame 0 (error -1)." mean, and why does it keep happening?

    So I've been trying to export a video file from Motion 5 (and FCPX), and I keep recieving the message "The operation could not be completed because an error occurred when creating frame 0 (error -1)". I've found the problem has something to do with a video file in the project, Ive tried multiple versions of said file, in multiple formats (.mov, h264, etc.), and I keep getting the same result.  The file was originaly a 640x480 wmv file. Any suggestions?

    I ended up figuring out a solution, but I'll get to that in a sec.
    To answer your question, I converted the .wmv file in a program called Media Converter (available in the App store), and converted it to an h.264 file (then later to a .mov file, and then to an .mpg). I could view the file, and work with it in projects, but any project I tried to output with any version of said file, would result in the afor mentioned message, with the same results in FCPX (and Compressor 4 as well).  I tried multiple frame rates, resolutions, files types, re-converting the file, all with no luck.  My impression from said experiments, and reading other discussions was that it was a corrupt file. 
    Then I got frisky...and a little desperate. I brought the converted file (the .wmv to .mov) into Motion 4... and an export worked first try.  So I exported a pro-res file from Motion 4, and used that file in the already built Motion 5 project, and voila! 
    So, who knows what that means in real terms, as for the whats and whys.

  • Open serial port each time to communicat​e

    Hello,
    I am upgrading an old serial I/O communications system. With the old system, any communications were begun by re-opening the serial port and getting a new visa resource name. The old visa resource name was never closed, but new names were continually created. In the new communications I only open the port once and use the same visa resource name. The trouble is that the new system is incredibly slow, taking almost 3 seconds to complete a message.  Note: prior to reading, I do query for number of bytes at the port and then read the corresponding amount. The old system is much, much faster. Why?
    Many thanks,
    Steve

    Hello,
    Here is a copy of both communications vis. The old one works much faster, I don't know why.
    Thanks!
    Steve
    Attachments:
    OLDSend&Recieve Data.vi ‏41 KB
    NEWSend&Recieve Data.vi ‏40 KB

Maybe you are looking for

  • Warning on Infotype 0105

    Hi I am trying to switch the warning off that appears on Infotype 0105. The warning comes up if you put the same phone number for two employees. I did change the time constraint to "3" but this does not switch the warning off. What else can i do to s

  • Profit Loss Report

    Hi, I have some questions on general ledger table FAGLFLEXT to be used in a P&L report based on cost center. The P&L report will have various line #s and each line # represents something like Gross Sales, Rebates, Discounts, etc. There are also total

  • Mobile: Web Service data control doesn't refresh data when revisiting page

    Hi all, I have an ADF Mobile AMX page which shows data returned by a Web Service. The page is pretty simple and contains a listView which iteraters over my WS Data Control's binding, as well as some GUI components to make it possible to use amx:listV

  • Rotation-problem. Any got the solution?

    "I've noticed that launching a  video full-screen to begin with allows you  to rotate, while launching a  video that plays inline to begin with and  then subsequently blowing it  up full-screen will not allow you to  rotate." What is the solution to

  • Integrate multiple javabeans in one webservice

    Hi! I'm developing web services for a company, and i've a problem. I've yet built a webservice which connects via SOAP to a JavaBean. But now I want to build a webservice who connects to multiple JavaBeans (which contain the functions for the webserv