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

Similar Messages

  • 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?

  • Can we able to write code File transfer protocol code in HTTPServlet file ?

    Can we able to write code File transfer protocol code in Http file ?
    if Yes , give some details about how to write
    if No, give some reason why not .
    Thanks

    Hi Paul(DrClap)
    My question is ,if we are using a java
    file(servlet) which is handing httprequest , can we
    use this to handle FTP request also.As I already said, you can't use a servlet as an FTP server.
    can we able to write FTP code in above mentioned file?As I already politely pointed out, "FTP code" is ambiguous until you specify whether you mean server or client code.
    So. If you don't understand what clients and servers are, then drop this question and go away until you do understand. It's not that complicated.
    And please don't waste my time by responding with the same questions over again.

  • Is there any way to use a file transfer protocol to upload files to icloud?

    Is there any way to use a file transfer protocol to upload files to icloud?

    Unfortunately, no.
    You will need a 3rd party web host to upload your websites to. Depending on the version of iWeb you are using you have a couple of publishing options:
    iWeb ’09 (3.0.4) you can publish to an FTP Server or a local folder. ( With the built in FTP in iWeb you will end up with an address like “www.YourDomain.com/sitename/Home.html )
    iWeb ’08 you can publish your website to a local folder
    Basically all Web Hosting companies are iWeb-compatible.
    If you’re looking for a good hosting I would recommend IX Web Hosting I have been using them to host my own websites for several years now and that their customer support is awesome too.
    http://jeffnitschke.com/IXWebHosting.html
    http://jeffnitschke.com/wordpress/2012/06/how-do-i-move-my-mobileme-site-ix-web- hosting-blog/
    "I may receive some form of compensation from my recommendation or link."

  • SSH File Transfer Protocol

    Has anyone successfully implemented ssh file transfer protocol on a pix(515 or 525)?

    Please elaborate what you're trying to achieve.
    Secure FTP (sFTP) to the firewall or through
    the firewall?
    CCIE Security

  • Large file transfer problems over client/server socket

    Hi,
    I wrote a simple chat problem in which I can send files from client to client. The problem is when I send large files over 101 MB the transfer freezes. I do not even get any error mesages in the console. The files I am sending are of any type (Ex mp3, movies, etc...). I am serializing the data into a "byteArray[packetSize]" and sending the file packet by packet until the whole file has been sent, and reconstructed on the other side. The process works perfectly for files smaller than 101MB, but for some reason freezes after that if the file is larger. I have read many forums and there aren't too many solutions out there. I made sure to use the .reset() method to reset my ObjectOutputStream each time I write to it.
    Here's my file sending code:
    byte[] byteArray = new byte[defaultPacketSize];
    numPacketsRequired = Math.ceil(fileSize / defaultPacketSize);
    try {
    int i = 0;
    reader = new FileInputStream(filePath);
    while (reader.available() > 0) {
    if (reader.available() < defaultPacketSize) {
    byte[] lastPacket = new byte[reader.available()];
    reader.read(lastPacket);
    try {
    if (socket == null || output == null) {
    throw new SocketException("socket does not exist");
    output.writeObject(lastPacket);
    output.reset();
    output.writeObject("DONE");
    output.reset();
    output.close();
    socket.close();
    catch (Exception e) {
    System.out.println("Exception ***: " + e);
    output.close();
    socket.close();
    else {
    reader.read(byteArray);
    try {
    if (socket == null || output == null) {
    throw new SocketException("socket does not exist");
    output.writeObject(byteArray);
    output.reset();
    catch (Exception e) {
    System.out.println("Exception ***: " + e);
    output.close();
    socket.close();
    reader.close();
    catch (Exception e) {
    System.out.println("COULD NOT READ PACKET");
    Here's my file receiving code:
    try {
    // The message from the client
    Object streamInput;
    FileOutputStream writer;
    byte[] packet;
    while (true) {
    streamInput = input.readObject();
    if (streamInput instanceof byte[]) {
    packet = (byte[]) streamInput;
    try {
    writer = new FileOutputStream(outputPath, true);
    writer.write(packet); //Storing the bytes on file
    writer.close();
    catch (Exception e) {
    System.out.println("Exception: " + e);
    else if (streamInput.equals("DONE")) {
    socket.close();
    input.close();
    break;
    catch (Exception e) {
    I'm looking for any way I can possibly send large files from client to client without having it freeze. Are there any better file transfer ways other than socket? I don't really want FTP. I think I want to keep it HTTP.
    Any suggestions would be helpful.Thanks!
    Evan

    I've taken a better look a the code you posted, and
    there is one problem with the receiving code. You
    keep repeatedly opening and closing the
    FileOutputStream. This is not going to be efficient
    as the file will keep needing to be positioned to its
    end.Yes sorry I did change that code so that it leaves the file open until completely done writing. Basically I have a progress bar that records how far along in the writing process the client is, and when the progress bar reaches 100%, meaning the file is complete, the file.close() method is invoked. Sorry about that.
    I also ran some memory tests using the "Runtime.getRuntime().totalMemory()", and "Runtime.getRuntime().freeMemory()" methods. I put these methods inside the loop where I read in the file and send it to the client. here's the output:
    Sender's free memory: 704672
    File reader read 51200 bytes of data.
    767548 left to read.
    Sender's runtime memory: 2818048
    Sender's free memory: 702968
    File reader read 51200 bytes of data.
    716348 left to read.
    Sender's runtime memory: 2818048
    Sender's free memory: 701264
    File reader read 51200 bytes of data.
    665148 left to read.
    Sender's runtime memory: 2818048
    Sender's free memory: 699560
    File reader read 51200 bytes of data.
    613948 left to read.
    Sender's runtime memory: 2818048
    Sender's free memory: 697856
    File reader read 51200 bytes of data.
    562748 left to read.
    Sender's runtime memory: 2818048
    Sender's free memory: 696152
    File reader read 51200 bytes of data.
    511548 left to read.
    Sender's runtime memory: 2818048
    Sender's free memory: 694448
    File reader read 51200 bytes of data.
    460348 left to read.
    Sender's runtime memory: 2818048
    Sender's free memory: 692744
    File reader read 51200 bytes of data.
    409148 left to read.
    Sender's runtime memory: 2818048
    Sender's free memory: 691040
    File reader read 51200 bytes of data.
    357948 left to read.
    Sender's runtime memory: 2818048
    Sender's free memory: 689336
    File reader read 51200 bytes of data.
    306748 left to read.
    Sender's runtime memory: 2818048
    Sender's free memory: 687632
    File reader read 51200 bytes of data.
    255548 left to read.
    Sender's runtime memory: 2818048
    Sender's free memory: 685928
    File reader read 51200 bytes of data.
    204348 left to read.
    Sender's runtime memory: 2818048
    Sender's free memory: 684224
    File reader read 51200 bytes of data.
    153148 left to read.
    Sender's runtime memory: 2818048
    Sender's free memory: 682520
    File reader read 51200 bytes of data.
    101948 left to read.
    Sender's runtime memory: 2818048
    Sender's free memory: 680816
    File reader read 51200 bytes of data.
    50748 left to read.
    Sender's runtime memory: 2818048
    Sender's free memory: 679112
    File reader read 50748 bytes of data.
    0 left to read.
    Creating last packet of size: 50748
    Last packet size after setting it equal to byteArray: 50748
    Here's the memory stats from the receiver:
    Receiver's free memory: 639856
    Receiver's total memory: 2842624
    Receiver's free memory: 638920
    Receiver's total memory: 2842624
    Receiver's free memory: 637984
    Receiver's total memory: 2842624
    Receiver's free memory: 637048
    Receiver's total memory: 2842624
    Receiver's free memory: 636112
    Receiver's total memory: 2842624
    Receiver's free memory: 635176
    Receiver's total memory: 2842624
    Receiver's free memory: 634240
    Receiver's total memory: 2842624
    Receiver's free memory: 633304
    Receiver's total memory: 2842624
    Receiver's free memory: 632368
    Receiver's total memory: 2842624
    Receiver's free memory: 631432
    Receiver's total memory: 2842624
    Receiver's free memory: 630496
    Receiver's total memory: 2842624
    Receiver's free memory: 629560
    Receiver's total memory: 2842624
    Receiver's free memory: 628624
    Receiver's total memory: 2842624
    Receiver's free memory: 627688
    Receiver's total memory: 2842624
    Receiver's free memory: 626752
    Receiver's total memory: 2842624
    Receiver's free memory: 625816
    Receiver's total memory: 2842624
    Receiver's free memory: 624880
    Receiver's total memory: 2842624
    Receiver's free memory: 623944
    Receiver's total memory: 2842624
    Receiver's free memory: 623008
    Receiver's total memory: 2842624
    Receiver's free memory: 622072
    Receiver's total memory: 2842624
    Receiver's free memory: 621136
    Receiver's total memory: 2842624
    Receiver's free memory: 620200
    Receiver's total memory: 2842624
    Receiver's free memory: 619264
    Receiver's total memory: 2842624
    Receiver's free memory: 618328
    Receiver's total memory: 2842624
    Receiver's free memory: 617392
    Receiver's total memory: 2842624
    Receiver's free memory: 616456
    Receiver's total memory: 2842624
    Receiver's free memory: 615520
    Receiver's total memory: 2842624
    Receiver's free memory: 614584
    this is just a sample of both receiver and sender's stats. Everything appears to be fine! Hope this message post isn't too long.
    Thanks!

  • File Transfer Protocol

    Hi,
    For my project, am curretnly storing the files in local xi server directory.  We need to ask the client for a FTP server information.
    In order to achieve this, is it enough to ask just the file server name and port followed by user name and pwd.
    As i have seen some parameters in file communication channel like connect mode and transfer mode, do i need to check these things also.
    Just let me know the parameters i need to get it from the client to implement a file sender or receiver communical channel which is of FTP and not NFS.
    Regards,
    B.Anandh

    Hi,
    have u read the information provided in link.
    &#9679;      Connect Mode make it permanent.
    &#9675;       Permanent
    An existing connection to the FTP server is used permanently.
    The connection is reestablished automatically if it is lost on the server side.
    &#9675;       Per File Transfer
    A new connection to the FTP server is established for each file transfer.
    &#9679;      Transfer Mode
    Set the FTP connection transfer mode to Text or to Binary.
    Thnx
    Chirag

  • Suddenly slow transfer of files between computers over LAN

    All, I have the following: HP Desktop, XP Pro, SP3, with Maxtor external HD Dell Laptop, VISTA Business, SP2 Both 32 bit Both running Norton Internet Security 2011, including firewall Linksys WRT54GL router V1.1, connected to DSL The external HD is configured to share over the network. I use it to move files between the twp computers, and to access the Internet. It has been working fine for about 3 years. Everything is still working, except that the speed of transfer, either direction, between the laptop and the external HD has dropped to nearly zero. Files that used to take a minute or so to transfer now literally take hours, and depending on the software, may time out. The problem is not so much the speed over the network, but that the data is only sent in short bursts, with long, many seconds, delays between. As the file progresses, the process gets worse. Typically, it takes as long to send the last 10 % as the first 90%. In the past, the data was sent in a continuous stream. The access between the laptop and the Internet is still fine. I am in a rural area, and have verified that there is no other WiFi to interfere. Using my backup program, I have rolled both my computers back to a time when everything was working. The problem still exists. That seems to point to the router. I have flashed the most recent firmware and reconfigured, but not help. Google turns up lots of hits, but nothing that fits this. Any suggestions on what to do next? For now, I am just swapping the USB drive physically. Alan

    Try to reset the router and reconfigure it.
    Press and hold the reset button on the router for 30 seconds. Release the reset button and wait for 30 seconds. Power cycle the router and reconfigure it.
    Change the MTU size to 1365. Save the settings.
    Go to Wireless tab and click on Advanced wireless settings. Change the Beacon Interval to 75, RTS and fragmentation threshold to 2304. Save the settings. Power cycle the router and see if that helps you.
    Disable or turn OFF the firewall or Anti-virus software on your computer.

  • How to optimize Mac file sharing speeds over LAN?

    I got a new NetGear R7000, and I find it very fast for LAN transfers wired or wireless between Macs running OS X Mountain Lion or Mavericks. Testing large (multigigabyte) file transfers over AFP, an early 2011 Macbook Pro running Mavericks 10.9.1 connecting to a 2011 Mac Mini running Mountain Lion 10.8.5, Ethernet speeds can hit 6 GB per min (800 Mbps) real world and wireless 2.06 GB / min (273 Mbps), real world performance.
    If I perform a similar test for Snow Leopard on both ends, an early 2011 Macbook Pro running Snow Leopard 10.6.8 onnecting to a 2010 Mac Mini also running 10.6.8, has Ethernet transfers topping out at about 1.72 Gigabytes per minute for Ethernet (228 Mbps) and 1.07 GB / min (140 Mbps) for Wifi, real world performance.
    I am wondering if there is anything I can do to speed up the Snow Leopard AFP networking. (There are some applications that run only in Snow Leopard and I would like to have it network efficiently instead of getting rid of it. The Macbook Pro has a partitioned drive so I can boot between Snow Leopard and Mavericks.)
    I know that Apple made some tweaks in file sharing performance in Mountain Lion 10.8.5, and I suspect TCP IP parameters were altered to speed things up dramatically when there were all the complaints about it being slow on Mac Book Airs with 802.11ac. I am curious what Apple did.
    I am wondering if anyone has any tips on how I can improve AFP file sharing performance in Snow Leopard. Are there TCP IP parameters, or plist entries, or other hidden settings I can change? Parameters I can tune in sysctl.conf? I am hoping a real network guru can come on here to advise on some advanced techniques I can use to speed up AFP on Snow Leopard. It is the Macs running Snow Leopard that need to be tuned, not the router, as speeds are very fast sharing between Mountain Lion and Mavericks.
    Also, for any/all Mac OS versions, are there networking parameters that I can tune to speed up transfers that involve a very large number of very small files? Even recent versions of OS X slow down greatly on this.
    Thanks in advance

    Anyone have any ideas? What kind of speed do others see through gigabit Ethernet, with snow leopard or Lion?

  • How can we use SFTP(SSH File Transfer Protocol) in flex?

    Hi All,
    Could anyone suggest me how can we transfer files to server using SFTP in flex? Whether it is feasible or not?
    Thanks
    Rudresh

    http://lmgtfy.com/?q=sftp+flex
    If you can't get anything to work, you might have success with NativeProcess or another protocol instead...
    Harbs

  • How to use File Transfer Protocol in Java?

    hi all,
    im new to java. i dont know how to use FTP in java. but i want to transfer files from my machine to another machine and also i want to download files from that machine through FTP. how can i start this program. pls any one give me the code for this program. thanks in advance.

    Of course you didn't get an "exact result", since that link was to an article which reviewed several products. If you aren't capable of making a decision based on that article, try using the Apache Commons/Net FTP component.

  • Bluetooth file transfer protocol

    hello everybody....i want to implement PC to PC chat using bluetooth.however,i can implement mobile to PC transfer of messages or files using bluetooth but not between 2 PC's.
    can anybody please help me with its coding?

    So, you can't do your project so you want us to do it for you? Sorry, not me.

  • AirPort Extreme (802.11n) File Transfer Speeds Over Ethernet

    I tested the transfer time for a 1.33GB file from one computer to another under four conditions. Both computers support gigabit Ethernet, and all cabling is Category 6.
    Condition 1: Both computers were directly connected to a pre-gigabit AirPort Extreme Base Station (802.11.n)
    The transfer time was 128 seconds.
    Condition 2: Both computers were directly connected to an 8-port D-Link DGS-2208 gigabit switch, which in turn was connected to a pre-gigabit AirPort Extreme Base Station (802.11.n)
    The transfer time was 72 seconds.
    Condition 3: Both computers were directly connected to an 8-port D-Link DGS-2208 gigabit switch, which in turn was connected to a gigabit AirPort Extreme Base Station (802.11.n)
    The transfer time was 55 seconds.
    Condition 4: Both computers were directly connected to a gigabit AirPort Extreme Base Station (802.11.n)
    The transfer time was 28 seconds.
    Tentative Conclusions: Using a gigabit switch as the parallel connecting device when the router is pre- or non-gigabit is helpful. Using a gigabit switch as the connecting device when the router is also gigabit is hurtful with respect to transfer time.
    I would appreciate any comments.

    I re-ran the tests several times, taking care to "pre-warm" the connections by rebooting the router (and the switch when applicable) and making one false start, stopping the first transfer and then starting the timed transfer.
    The transfer times when no switch was involved were virtually the same as I reported earlier, with the gigabit router significantly outperforming the pre-gigabit AEBS (it was 5.73 times slower). Interestingly, the transfers via the gigabit switch were virtually as fast as a pure transfer using only the gigabit router.
    And there was no difference in the gigabit switch-employed transfer times regardless of whether a pre-gigabit or gigabit router was used. Here is my revised conclusion:
    Using a gigabit switch with Apple's pre-gigabit 802.11n router overcomes the slowness associated with a pre-gigabit router provided that pre-warming techniques are employed.

  • File transfer protocol supported by Cisco infrastructure

    We are having issues uploading new endpoint firmware updates to TMS and firmware updates to our VCS-C and VCS-E.
    Talking with our network team, FTP is not supported between the network segments I am traversing.  They can create some SFTP exceptions, but will the Cisco devices support SFTP?
    Thanks for your help.
    M Jensen

    You'll find that a lot of the devices support SCP rather than SFTP.
    You can also use HTTP ot HTTPS to upload the firmware files in to TMS, and to the Infrastrucuture components.
    If you use TMS to deploy the software to the endpoints, the endpoints download it via HTTP(s) from your TMS server.
    Note: with the more recent versions of TMS you can no longer upgrade VCSes using TMS and they must be done via the browser interface.
    Wayne
    Please remember to rate responses and to mark your question as answered if appropriate.

  • Plz hel for file transfer using zmodem protocol

    someoe plz help me. i have to devlop an application that transfers files betwn 2 pcs(both ways) using dial up connection, further it should autodial the connection at periodic times.
    i am trying to use Zmodem file transfer protocol. i succseed in sending string (for test)using my sender program with hyper terminal open on the other hand. it prints the string. but when i use my receive program, similar to given in samples(simpleread.java) it doesnt work.
    actually when the ring comes from the sender how to send command to modem to hang up and connect to the calling pc if there are any such commands then plz help.
                                  ----sameer

    someoe plz help me. i have to devlop an application
    that transfers files betwn 2 pcs(both ways) using dial
    up connection, further it should autodial the
    connection at periodic times.
    i am trying to use Zmodem file transfer protocol. i
    succseed in sending string (for test)using my sender
    program with hyper terminal open on the other hand. it
    prints the string. but when i use my receive program,
    similar to given in samples(simpleread.java) it doesnt
    work.
    actually when the ring comes from the sender how to
    send command to modem to hang up and connect to the
    calling pc if there are any such commands then plz
    help.
    ----sameerU ddnt abrvt nuf. I r3r1t 4 U.
    Sum1 plzz hep m3. i 1/2 2 dvlop app taht xfer fil betwn 2 pcs(bth wys)...

Maybe you are looking for

  • Why won't itunes work with windows 8.1?  i tunes can not locate my music.

    Why won't windows 8.1 let itunes locate my music?  I deleted and downloaded, still won't do it.  But like majic after I installed windows 8.1 my computer had a XBOX music player appear, that found my 3200 songs and it was able to play the entire libr

  • Regarding IQ09 report

    Hi, We got issue from Users, IQ09 report is not giving results properly. when we are trying to execute report, with sales order number for which delivery PGI'ed with serial numbers, not getting reslut with corresponding material and serial number. wh

  • C++ XML parser error 201 - invalid encoding

    When I make a call: xmlpar.xmlparse((oratext *)filename, (oratext *)"UTF-8", flags) it results in error 201 - encoding is not valid. The same happens when I try KOI-8 encoding. I use XML Parser 2.0.2.0.0 (C++)/Linux,egcs-2.91.66. Any suggestions?

  • Stocks iPhone Application isn't working on 2G after 2.2 Update

    Hi, ever since i updated the Software on my 2G Phone to 2.2, the Stocks application started behaving erratic. The daily value of stock, for example, AAPL, apple, shows the numeric value as well as the graphical movement of the stock price. The graph

  • I can't find the software button on my iphone4

    I try to upgrade my iphone 4, but i don't have the software button in the list 'general'. What can i do or what happen ? Thank you.