Program over LAN

If you're making a program that will allow a few programs that are distributed on different computers over a LAN to communicate with each other, from a developer's point of view is this more similar to programming locally, or programming over HTTP?
What things should one be aware of when programming in a LAN environment? In your experience, how is it similar to and different from programming locally and programming over HTTP?
What are the options in terms of how the programs could communicate: are RMI, EJB, and Sockets all viable options, or are some of these not valid for LANs?
Thanks.

Thanks for your response.
Does that mean you can ignore the fact that the
computers are over a LAN, and just program like a
regular application? Program yes. Design no.
That same program could then be
used either over a LAN or over the Internet, with no
changes to the code? Yes.
>
Perhaps I should try to clarify my confusion: If
there are programs that you want to be able to
communicate with each other, and they are distributed
across many computers, what is the difference (from a
programming point of view) whether those computers
are located on a LAN, or whether they are not on the
same network (LAN, WAN, etc) but are all hooked up to
the Internet?No difference.
When you have your program connect to a socket on a server on a LAN, a WAN or something internety makes no difference to your program code. None.
There are of course important design considerations.
1) Security. With properly maintained firewalls the computers on a LAN cannot be accessed from outside the LAN.
2) Performance. LAN performance is better than internet performance. A LAN offers shorter physical differences but more importantly greater speeds and much greater bandwidth throughput.
So yes you should keep those two points in mind when you design how your application works.
But if you write code to connect to a socket on a LAN it will work the same way if you point it at a machine that is not on your LAN.

Similar Messages

  • File transfer protocol over LAN

    Hello every wizards of this world...i extemely need ur help...plz...can i ask for ur helping hands to give us a running codes for file transfer. on socket programming over LAN(local area network)..we nid this codes for our project...we find hard searching for it on the internet...there are lots of examples but it doesn't work...

    FTP

  • Printing broken for HP LJ1150 over Lan

    All of sudden today I cannot print to my LaserJet 1150, although all other Win boxes can. The printer is connected via USB to a MacMini and shared over Lan. It's rather embarrassing.
    When I attempt to print from say Safari, I get a dialog that says "Print - Error while Printing. OK"
    Please help. Thanks people, as always.
    I checked my Console.log and I attach what I see:
    ===========================================
    ===== Wednesday, December 12, 2007 4:47:57 PM Europe/Athens =====
    Dec 12 16:48:03 any /Applications/Safari.app/Contents/MacOS/Safari: CGContextSetStyle: invalid context
    Dec 12 16:48:03 any /Applications/Safari.app/Contents/MacOS/Safari: CGContextSetStyle: invalid context
    Dec 12 16:48:03 any /Applications/Safari.app/Contents/MacOS/Safari: CGContextSetStyle: invalid context
    Dec 12 16:48:03 any /Applications/Safari.app/Contents/MacOS/Safari: CGContextSetStyle: invalid context
    Dec 12 16:48:03 any /Applications/Safari.app/Contents/MacOS/Safari: CGContextSetStyle: invalid context
    Dec 12 16:48:03 any /Applications/Safari.app/Contents/MacOS/Safari: CGContextSetStyle: invalid context
    Dec 12 16:48:03 any /Applications/Safari.app/Contents/MacOS/Safari: CGContextSetStyle: invalid context
    Dec 12 16:48:03 any /Applications/Safari.app/Contents/MacOS/Safari: CGContextSetStyle: invalid context
    Dec 12 16:48:03 any /Applications/Safari.app/Contents/MacOS/Safari: CGContextSetStyle: invalid context
    Dec 12 16:48:03 any /Applications/Safari.app/Contents/MacOS/Safari: CGContextSetStyle: invalid context
    Dec 12 16:48:03 any /Applications/Safari.app/Contents/MacOS/Safari: CGContextSetStyle: invalid context
    Dec 12 16:48:03 any /Applications/Safari.app/Contents/MacOS/Safari: CGContextSetStyle: invalid context
    Dec 12 16:48:03 any /Applications/Safari.app/Contents/MacOS/Safari: CGContextSetStyle: invalid context
    Dec 12 16:48:03 any /Applications/Safari.app/Contents/MacOS/Safari: CGContextSetStyle: invalid context
    Dec 12 16:48:03 any /Applications/Safari.app/Contents/MacOS/Safari: CGContextSetStyle: invalid context
    Dec 12 16:48:03 any /Applications/Safari.app/Contents/MacOS/Safari: CGContextSetStyle: invalid context
    Dec 12 16:48:03 any /Applications/Safari.app/Contents/MacOS/Safari: CGContextSetStyle: invalid context
    Dec 12 16:48:03 any /Applications/Safari.app/Contents/MacOS/Safari: CGContextSetStyle: invalid context
    Dec 12 16:48:03 any /Applications/Safari.app/Contents/MacOS/Safari: CGContextSetStyle: invalid context
    Dec 12 16:48:03 any /Applications/Safari.app/Contents/MacOS/Safari: CGContextSetStyle: invalid context
    Dec 12 16:48:03 any /Applications/Safari.app/Contents/MacOS/Safari: CGContextSetStyle: invalid context
    Dec 12 16:48:03 any /Applications/Safari.app/Contents/MacOS/Safari: CGContextSetStyle: invalid context
    Dec 12 16:48:03 any /Applications/Safari.app/Contents/MacOS/Safari: CGContextSetStyle: invalid context
    Dec 12 16:48:03 any /Applications/Safari.app/Contents/MacOS/Safari: CGContextSetStyle: invalid context
    Dec 12 16:48:03 any /Applications/Safari.app/Contents/MacOS/Safari: CGContextSetStyle: invalid context
    Dec 12 16:48:03 any /Applications/Safari.app/Contents/MacOS/Safari: CGContextSetStyle: invalid context
    Dec 12 16:48:03 any /Applications/Safari.app/Contents/MacOS/Safari: CGContextSetStyle: invalid context
    Dec 12 16:48:03 any /Applications/Safari.app/Contents/MacOS/Safari: CGContextSetStyle: invalid context
    Dec 12 16:48:03 any /Applications/Safari.app/Contents/MacOS/Safari: CGContextSetStyle: invalid context
    Dec 12 16:48:03 any /Applications/Safari.app/Contents/MacOS/Safari: CGContextSetStyle: invalid context
    Dec 12 16:48:03 any /Applications/Safari.app/Contents/MacOS/Safari: CGContextSetStyle: invalid context
    Dec 12 16:48:03 any /Applications/Safari.app/Contents/MacOS/Safari: CGContextSetStyle: invalid context
    Dec 12 16:48:03 any /Applications/Safari.app/Contents/MacOS/Safari: CGContextSetStyle: invalid context
    Dec 12 16:48:03 any /Applications/Safari.app/Contents/MacOS/Safari: CGContextSetStyle: invalid context
    Dec 12 16:48:03 any /Applications/Safari.app/Contents/MacOS/Safari: CGContextSetStyle: invalid context
    Dec 12 16:48:03 any /Applications/Safari.app/Contents/MacOS/Safari: CGContextSetStyle: invalid context
    Dec 12 16:48:03 any /Applications/Safari.app/Contents/MacOS/Safari: CGContextSetStyle: invalid context
    Dec 12 16:48:03 any /Applications/Safari.app/Contents/MacOS/Safari: CGContextSetStyle: invalid context
    Dec 12 16:48:03 any /Applications/Safari.app/Contents/MacOS/Safari: CGContextSetStyle: invalid context
    Dec 12 16:48:03 any /Applications/Safari.app/Contents/MacOS/Safari: CGContextSetStyle: invalid context
    Dec 12 16:48:03 any /Applications/Safari.app/Contents/MacOS/Safari: CGContextSetStyle: invalid context
    Dec 12 16:48:03 any /Applications/Safari.app/Contents/MacOS/Safari: CGContextSetStyle: invalid context
    Dec 12 16:48:03 any /Applications/Safari.app/Contents/MacOS/Safari: CGContextSetStyle: invalid context
    Dec 12 16:48:03 any /Applications/Safari.app/Contents/MacOS/Safari: CGContextSetStyle: invalid context
    Dec 12 16:48:03 any /Applications/Safari.app/Contents/MacOS/Safari: CGContextSetStyle: invalid context
    Dec 12 16:48:03 any /Applications/Safari.app/Contents/MacOS/Safari: CGContextSetStyle: invalid context
    2007-12-12 16:48:03.806 Safari[306] PMSessionValidatePrintSettings failed (error code = -50)
    Dec 12 16:48:03 any /Applications/Safari.app/Contents/MacOS/Safari: CGContextSetStyle: invalid context
    Dec 12 16:48:03 any /Applications/Safari.app/Contents/MacOS/Safari: CGContextSetStyle: invalid context
    Dec 12 16:48:03 any /Applications/Safari.app/Contents/MacOS/Safari: CGContextSetStyle: invalid context
    Dec 12 16:48:03 any /Applications/Safari.app/Contents/MacOS/Safari: CGContextSetStyle: invalid context
    Dec 12 16:48:03 any /Applications/Safari.app/Contents/MacOS/Safari: CGContextSetStyle: invalid context
    Dec 12 16:48:03 any /Applications/Safari.app/Contents/MacOS/Safari: CGContextSetStyle: invalid context
    Dec 12 16:48:03 any /Applications/Safari.app/Contents/MacOS/Safari: CGContextSetStyle: invalid context
    Dec 12 16:48:03 any /Applications/Safari.app/Contents/MacOS/Safari: CGContextSetStyle: invalid context
    Dec 12 16:48:03 any /Applications/Safari.app/Contents/MacOS/Safari: CGContextSetStyle: invalid context
    Dec 12 16:48:03 any /Applications/Safari.app/Contents/MacOS/Safari: CGContextSetStyle: invalid context
    Dec 12 16:48:03 any /Applications/Safari.app/Contents/MacOS/Safari: CGContextSetStyle: invalid context
    Dec 12 16:48:03 any /Applications/Safari.app/Contents/MacOS/Safari: CGContextSetStyle: invalid context
    Dec 12 16:48:03 any /Applications/Safari.app/Contents/MacOS/Safari: CGContextSetStyle: invalid context
    Dec 12 16:48:03 any /Applications/Safari.app/Contents/MacOS/Safari: CGContextSetStyle: invalid context
    Dec 12 16:48:03 any /Applications/Safari.app/Contents/MacOS/Safari: CGContextSetStyle: invalid context
    Dec 12 16:48:03 any /Applications/Safari.app/Contents/MacOS/Safari: CGContextSetStyle: invalid context
    Dec 12 16:48:03 any /Applications/Safari.app/Contents/MacOS/Safari: CGContextSetStyle: invalid context
    Dec 12 16:48:03 any /Applications/Safari.app/Contents/MacOS/Safari: CGContextSetStyle: invalid context
    2007-12-12 16:48:03.818 Safari[306] PMSessionEndDocumentNoDialog failed (error code = -30871)
    2007-12-12 16:48:04.601 Safari[306] Failed to end PMPrintContext

    Thanks greg,
    I had already Safe Booted and then re-added the printer by the time I had read your post. All is fine for now.
    Thanks.
    PS Prior to Safe-Booting, I had deleted/re-added the printer a number of times. Every time I attempted to print after adding the printer, it just locked and reproduced the error. Only after Safe-Boot did it come back alive.

  • FTP/SFTP/FISH (etc) slow file transfer rate over LAN

    Hi everyone,
    I have a problem with transferring files over my home network that has been bothering me for quite some time.
    I have a 802.11n router which should provide me with the transfer rate up to 150 Mbps (afaik). When I download files from the Internet, 3 MB/s data transfer rate is of no problem.
    However, when receiving or sending data over LAN, the transfer rate is much slower (1.8 MB/s).
    My rough guess is (after reading some papers on this topic) that TCP protocol is causing this (its flow control feature to be exact), since TCP max window size is too small on Linux by default.
    So, setting TCP max window size to a greater number should solve this.
    I tried putting this:
    # increase TCP max buffer size setable using setsockopt()
    # 16 MB with a few parallel streams is recommended for most 10G paths
    # 32 MB might be needed for some very long end-to-end 10G or 40G paths
    net.core.rmem_max = 16777216
    net.core.wmem_max = 16777216
    # increase Linux autotuning TCP buffer limits
    # min, default, and max number of bytes to use
    # (only change the 3rd value, and make it 16 MB or more)
    net.ipv4.tcp_rmem = 4096 87380 16777216
    net.ipv4.tcp_wmem = 4096 65536 16777216
    # recommended to increase this for 10G NICS
    net.core.netdev_max_backlog = 30000
    # these should be the default, but just to be sure
    net.ipv4.tcp_timestamps = 1
    net.ipv4.tcp_sack = 1
    in /etc/sysctl.conf but to no avail.
    So either there is no problem with the max window size setting, or the Linux kernel ignores it (maybe because /proc is no longer supported?).
    Thanks for any neat ideas.
    Last edited by Vena (2012-06-01 21:48:14)

    Bump? No ideas whatsoever?

  • Has anyone successfully used the serial-over-lan feature in ipmitool?

    The IPMI hardware in Apple's Intel Xserves ostensibly supports serial-over-LAN access via ipmitool. Attempting to access it with ipmitool doesn't appear to work, however; the command
    ipmitool -H hostname -U username sol activate
    simply returns without entering a serial session. I am able to perform other queries on the same interface with ipmitool, however. Is there some setting that I must enable in order to permit the above command to succeed?

    I have version 2.0.2 installed. The firmware is not up to date (its boot ROM is at version XS11.0080.B01); however, I never was able to figure out how to update it (see http://discussions.apple.com/thread.jspa?threadID=1569860&tstart=0). Querying the bmc info with ipmitool does work; it reports firmware revision 1.2.8. No manual changes were made within /dev to my knowledge.

  • X.25 over LAN using hme

    Hi there,
    I have to use hme for X.25 over LAN.
    But I can't see the hme in the device list on x25tool screen.
    I'm using SunLink X.25 9.0.
    Is there any way ? Modify some config files ?
    Thanks a lot

    Hi franky,
    I have just read your question with regards to configuring X.25
    over a LAN connection.
    What type/model of system is X.25 being configured on ?
    Has the hme ethernet card been added recently to the system?
    What devices do you have available to you ?
    Are you referring to the list under:
    Edit > Add Link > LAN > Device?
    Do you see the hme definition under the Board definition list?
    ie: Boards > Definition menu
    If not add a new device specifying a symbolic name Path to device
    which is /dev/hme, L for Lan device, number of lines/ports, MRU (usually 1515 for lan connections) and a Comment.
    I hope that this helps;
    Regards
    Derek SUN-DTS

  • RD120 Serial over Lan configuration.

    Hi,
    Does anyone know what the settings in the bios/BMC need to be on the RD120 to allow Serial over LAN...
    I am remote so I cannot see the bios or BMC utilities. There is no documentation on this on the Lenove website. I do not have an RSA adapter for this box as I really dont think I need it for Serial over LAN. I can see the BMC settings with ipmitool so I just need the SOL configuration steps.
    Does anyone know if I can set this up? I am looking for documentation on how to configure the bios and BMC..
    I can't find it anywhere.
    Thanks.

    Hi Bill,
    SoL is a special text based management path for users to access IBM blade servers via the Management Module uplink. On the IGESM, in code at 12.1(22)AY1 and below, it is necessary to configure a special VLAN on the IGESM to permit SoL to operate. Details on configuring SoL on older code IGESMs can be found in section 7.8 of the IGESM Redpaper:
    http://www.redbooks.ibm.com/abstracts/redp3869.html
    On code versions at 12.1(22)EA6 and above, there is a built in special hidden VLAN (4095) that does not require any configuration to support SoL. Based on this simplification, it is recommend to use code 12.1(22)EA6 or later if the use of SoL is desired.
    Thanks, Matt

  • Mac OS X 10.4.9 and Music Lab's "Midi Over LAN" broken?

    Hi all,
    I run "music lab's midi over lan" and am wondering if it doesn't work under the new OSX 10.4.9......
    I was forced to update 1 of my slave G5s and now "MolCP" no longer worx...... I can't be certain that it is 10.4.9, but I'm trouble-shooting,
    thanx in advance.
    SvK

    Er, that's not forced, that's just not knowing any better!
    You should have just gone to Apple and downloaded the 10.4.8 combo installer.
    http://www.apple.com/support/downloads/macosx1048comboupdateppc.html
    http://search.info.apple.com/?q=macos+x10.4.8&type=kbdload&search=Search&lr=lang_en&search=Go
    OSX updates are always recommended to be done from the full combo update, rather than the smaller cut-down software updates anyway.

  • Time Capsule backup over LAN

    Hello,
    is it possible to Time Capsule backup a non wifi Mac over LAN?

    of course. you can back up over an ethernet connection.

  • Firebird connection problem over LAN

    Hi, people this is my 7th day i fight with firebird on Arch to work on my LAN in work.
    The database is working on localhost when i go ./islq and select * all is ok and i see
    all that crap in my fdb base.
    At first i must say that port 3050 and 3051 are open and all other things that i configured
    like ssh, nomachine and murmur are working and i can connect to them even over internet.
    But when i try connect to database over lan i got connection refuse errors and info that cant connect
    to database.
    Firebird is 2.1.3 CS installed from official tarball from firebirdsql.org
    Before Arch on server was CentOS and firebird was working fine
    i changed the os because i love Arch and crappy CentOS was slow
    and after some updates start to crashing.
    Plz post your ideas and concepts i need help !!
    PS. sorry for my English i hope you understand me

    Did you try install firebird from AUR!?

  • Video conferencing over LAN

    I want to do a project on video conferencing over LAN .Plz help me
    for implementation.

    Have you tried AVTransmit2 and AVReceive2 to transmit multicast stream. then have multiple receivers join and disconnect.
    It works without any code modification, so I would study the differences between that and yours.
    I think I asked this before, are you transmitting multisession?? and receive multisession??
    Are you using linux by chance?

  • Audio over LAN

    Hi
    I am using Logic on a Quad core mac and running Vienna instruments as 4 Vienna Ensembles routing the audio back into Logic with soundflower. However I am trying to take some of the load of my DAW machine and so have ordered a 2 Mac mini's to put the vienna ensembles on. I am going to use Midi over LAN to send the midi, but was wandering if there is anyway to get the audio back over lan without me having to purchase audio interfaces for each mini and the mac pro?
    Has anybody tried using apples AUNetSend and AUNetReceive? Did these work fine or are there problems?
    Another solution I have been looking at is wormhole? Has anybody got this working fine with logic and two mac's?
    Any advice would be great!!!
    Thanks,
    Simon

    No, I have not tried them.
    I am trialing MusicLab's Midi Over Lan product to use the XP PC in my basement to serve up midi to my Mac. Also on trial is a VST called wormhole to pipe audio upstairs too.
    So far, so good, though I haven't tried going the other way, mac to pc.
    Shaun
    http://www.musiclab.com/products/rpl_info.htm
    http://code.google.com/p/wormhole2/downloads/list

  • So I had photshop cs5 installed on my pc...i had to get my hard drive replaced! I have the serial number and everything, but I need to know how to download it. I really don't wanna have to pay for the program over again.

    So I had photshop cs5 installed on my pc...i had to get my hard drive replaced! I have the serial number and everything, but I need to know how to download it. I really don't wanna have to pay for the program over again.

    If you registered your product, you should be able to find the download and serial number from your Adobe account.
    https://www.adobe.com/account.html
    Otherwise:
    Download Adobe CS5.5 Trials: Direct Links (no Assistant or Manager) | ProDesignTools
    You might still have to contact Customer Support to reset your Activations, unless you managed to deactivate the original installation.

  • Audio over LAN for OS X?

    Hi,
    Is anyone familiar with software that can stream audio over LAN, as is already possible with MIDIoverLAN? Replacing, say, a couple of ADAT ins and outs going from a sampler machine to a sequencing machine.
    Best,
    Maarten

    This apparently does it (never got round to trying it myself):
    http://plasq.com/wormhole
    Don't know how it stands up in practise, don't know anyone using it on a regular basis.
    But doesn't Logic achieve this in and of itself with its 'Node' philosophy ? (Not used Logic myself, always been on DP).
    G5 Dual 2.7, MacMini, iMac 700; P4/XP Desk & Lap.   Mac OS X (10.4.7)   mLan:01x/i88x; DP 5.1, Cubase SX3, Melodyne.

  • Wake over LAN

    Since updating to X.6.8 my MP has problems waking remotely. I'm connected to my router by Ethernet.
    I haven't tried all that much to resolve this as I'm not aware there is anything else but the wake over LAN checkbox to enable this service. I have tried unchecking the box and re-checking it, I've also tried restarting my router and setting a different length of time before the MP goes to sleep.
    Oddly enough I can wake the MP if I try a little time after it goes to sleep, but if I leave it for several hours it won't wake.
    It isn't just one situation/application that won't wake it either, my Apple TV won't, shared devices from the finder on other macs won't and other services like the Apple remote app and eyeTV app from the iPhone won't either.
    Any thoughts.

    hoping someone can help me here, as I want to accomplish WOL in my workplace. I'm in a building that has a central router that divides the internet into 4 different offices (into jacks in the wall). The central router is a linksys befsr41 that I don't have access to because it belongs to the property manager. The central router's ip address is 192.168.1.1 This router is not wireless, but I need wireless in my office, so I have my wrt54gc in my office to use with my tablet pc. I've gotten my computer to wake up no problem over LAN at home, over WAN at home (from remote location), but when I'm at my office (2 routers chained together) I don't know what I need to do to get it to work consistently. So my questions are: 1. What settings, if any, do i need to change on the central router? Do I need to port forward to the IP of MY router (or my CPU)?? 2. Same question for my router? I've looked all over the net and can't find any info on what to do for WOL in a multiple router environment such as mine. I guess I need to somehow tell that magic packet thingy to go through the central router, then through my router, and recognize my MAC address and ip. I really appreciate help in this matter.

Maybe you are looking for

  • Can you macbook pro with a 220 volt power adapter

    Can you macbook pro with a 220 volt power adapter

  • Photoshop for Mac won't download

    Whenever i try and download Photoshop it just does not work. See screen shots below: Can anyone help?

  • Create an one-time Launchd item

    Hello, I need to create a launch daemon to run only one time (for setting the machine's host name). I have created a script and put it in /Library/Scripts and a .plist file in Library/LaunchDaemons. In the last line of the script I create a "trigger"

  • Skipping button focus in the AWT

    If you have a text field, followed by a button, followed by another textfield, how can you get a TAB in the first textfield to take you to the second textfield without setting focus to the button? I'm talking strictly AWT here (I know there are some

  • Swapping out old modem using existing Airport Extreme

    I think my cable modem has burned out so I am swapping out the old modem with a new version fo the same modem and using existing my existing Airport Extreme - I thought I could just power everything off, plug in the new modem and then power back up b