Network Questions

1) What is the default file transfer in Java? For example, I am interested in building a client server program that needs to transfer files from my client to the server. Is there a built in class that can do that?
2) Is Java's default method of transfer TCP? By default, I mean the procedure of something like this:
ServerSocket s = new ServerSocket(8888);
Socket incoming = s.accept();
InputStream in = incoming.getInputStream();
blah blah blah
Is the above by default TCP?

disappearedng wrote:
1) What is the default file transfer in Java? The only default is using the filesystem. If you have NFS or CDFS, you mount the drive the file is on and read it.
For example, I am interested in building a client server program that needs to transfer files from my client to the server. Is there a built in class that can do that?Most people use a web server like Tomcat or a FTP (File Transfer Protocol) library.
>
2) Is Java's default method of transfer TCP? There isn't one. But Java supprot TCP and UDP.
By default, I mean the procedure of something like this:
ServerSocket s = new ServerSocket(8888);
Socket incoming = s.accept();
InputStream in = incoming.getInputStream();
blah blah blah
Is the above by default TCP?If that is what you mean by default, then it is the default.
But you might be alone in that. :)

Similar Messages

  • I bought the iPad 4 of America through the Apple Store of almost a month, and I am now in Egypt, and went to Tradeline company in Egypt, and said in an error made, and they do not do anything, what can I do.  (Find Permanent telephone network)  QUESTION:

    I bought the iPad 4 of America through the Apple Store of almost a month, and I am now in Egypt, and went to Tradeline company in Egypt, and said in an error made, and they do not do anything, what can I do.
    (Find Permanent telephone network)
    QUESTION: -
    1 / What to do
    2 / Can you switch the iPad in Egypt (Tradeline)
    3 / Can you switch the iPad in the Apple Store is located in the countries of the world, and what these countries.
    * I do not speak English

    Switching an iTunes Store account to a different country
    http://www.ilounge.com/index.php/articles/comments/switching-an-itunes-store-acc ount-to-a-different-country/
    iOS: How to change the language when it’s set to one you don’t understand
    http://support.apple.com/kb/HT2371
    iTunes: Changing the display language
    http://support.apple.com/kb/ht2242
    iOS: Using international keyboards
    http://support.apple.com/kb/HT4509
     Cheers, Tom

  • Hey Everyone...  I have a networking Question...

    Ok well its more then just one networking question...
    I'm working on a game engine (2d) and for the time being it just has two blocks in a 600 by 480 area, both controled by user input on a single comp. I would like to change this so that i can have the blocks be controled by sepeart computers. I know this is possible I just dont know how, any help would be great.
    My experience with Java is some what limited i've only been programing for the past 6 months and i've never messed with any network code before.
    Any and all help would be great
    Thanks
    Mike

    Boy, that other poster was really helpful, yes? :-P
    What you probably want to do is open a "socket" between one computer and the other. (TCP is probably the easiest/best for your application, as opposed to UDP). This is actually pretty simple, and basically consists of:
    (this client/server arrangement is the easiest. Peer-to-peer would work too, but is generally more complex.)
    1. Computer A decides to become the server and opens a java.net.ServerSocket on port 1234.
    2. Computer B opens a java.net.Socket to computer A's port 1234.
    3. Computer A accepts the connection and gets a java.net.Socket from the ServerSocket.
    4. Now anything computer A writes to the Socket is recieved by computer B, and vice-versa. This is a TCP connection and is stream-based, so it should be familiar if you've done any Java I/O before; in face, you can use java.io.Reader's and Writers, and so on with your Socket.
    See http://java.sun.com/docs/books/tutorial/networking/sockets/ for a good introduction to sockets.

  • Share files in ibook - networking question

    Hello, I have a networking question.
    I have a brand spakin' new 13' MacBook Pro and an older 14' iBook G4 (with a broken airport wireless card).
    My internet is set up so that I have the modem connected to a "wired" ethernet hub, then to an airport express. This way I have wireless for my new MacBook Pro, and I can connect my old iBook to the internet with a ethernet cable.
    Herein lies my question: I want to access all my files on my ibook from my MacBook Pro. I've tried the file sharing and etc on system preferences, but for some reason it still doesn't work. I believe its because they are on different networks? (one wireless, one wired?)
    Any ideas to make my ibook a simple file server.

    Try repairing disk permissions.
    *"The external HD has two partitions, one is a backup of the ibook, and the other has mixed media. When I access my ibook over the network, Only the backup partition appears, and not the mixed media partition. "* Try repairing permissions but not sure if that's going to work. Can't hurt to try.
    Launch Disk Utility. Select MacintoshHD in the panel on the left, select the FirstAid tab. Click: Repair Disk Permissions. When it's finished from the Menu Bar, Quit Disk Utility and restart your Mac.
    Also, your profile indicates you are running 10.4.3. If that is the case, you might want to run Software Updates (from the Apple Menu , then click Software Updates.
    Message was edited by: Carolyn Samit

  • Small office network questions

    I have a small office with 4-5 mac computers. I have a Mac mini set up as a file server and I use a standard cable connection for my internet service. I use a wired router (ethernet cables) all going to a netgear switch.
    Just bought a mac mini and a drobo storage device. I have successfully set up the drobo on the mac mini and I can "see" the files and read & write to the external drive. I also have a few other people in the office -- which will need access to the drobo via the network, but have a few questions there:
    1. I don't see the name of the other computers that can connect to the unit. When I get on one of the other machines and look for the drobo I can find it & edit files but from the mac-mini side, I can't see the proper name of the other computer. How do I do this?
    2. Can I limit which folders are accessible within the drobo that attached to the mac mini
    3. Am I missing anything from a safety standpoint? Can Anyone come into my office and access the files that are on the mac/mini drobo? Worse off, is the mac mini vulnerable to the outside world with this setup?
    Thanks for the help, new to all this networking stuff.

    It's been a week, so i don't know if you have already worked this out, but...
    while I am not familiar with your router, when I have used linksys before, i find it better to use static IP addresses for everything.  Try setting static IP addresses and make sure everyone's mask is 255.255.255.0.  Some routers also have a flag to allow computers to see each other.
    Best of luck.

  • Cisco ASA 5505 VPN Routing/Networking Question

    I have a very basic question about Cisco ASA 5505 IPsec Site to Site VPNs.  I want to install a Cisco ASA 5505 at a Data Center, in a LAN subnet that utilizes publicly routable IP addresses.  I would like to install a second Cisco ASA 5505 in a remote branch office as its peer. 
    Regardless of whether I use publicly routable IPs at the branch office in the "inside" network or non-routable IPs, how would the devices and servers at the Data Center know to route IP packets destined for the branch office back through the Cisco ASA instead of through the default gateway at the Data Center?  I can see accomplishing this if every single device at the Data Center is configured with routing table entries, but that isn't feasible.  It also isn't feasible to use the Cisco ASA 5505 as the default gateway for all of the devices as the Data Center, allowing it to decide where the traffic should go.
    What am I missing?  Is the solution to try to map branch office IPs to IP addresses within the Data Center's LAN subnet so that all of the traffic is on the same subnet?

    You can do it in several different ways.
    One way is to tell the server that if it has traffic to network x then it needs to go to the ASA all other traffic is to head for the default gateway.
    In windows this is done via the route command
    do not forget to make it "persistent" otherwise the route will disapear when your reboot the server.
    in unix/linux
    It is also the route command
    Or you can tell your "default gateway" to route that network to the ASA
    Good luck
    HTH

  • Apple remote and multiple Apple TV's on same network question

    I have 1st gen apple TV, Want to add 2nd gen apple tv.  I assume I can do that.  My real question is when using apple remote, can I control both Apple TVs independently?
    Anyone have any knowledge of if this will work or not?

    Welcome to the Apple Community.
    If you are talking about the supplied remote, as Rudegar suggests you can pair each remote with each device so that only that remote will control the device it's paired with.
    To pair a remote with a device hold down the menu and FF buttons together for six seconds or until you see a chain icon on screen. However it's not all that common for the TV's to be in different locations where an unpaired remote is unlikely to control both Apple TV's together. If you leave the remotes unpaired you should be able to use either remote with either Apple TV.
    Alternatively if you are talking about the remote App for the iPhone, iPad or iPod, each Apple TV will show up as a separate device and you can control any Apple TV on your network from anywhere in your home.

  • Can you help me with an OS 9 OSX Networking question?

    Hi, I'm hoping that this would be the right forum for this question.
    Deal is this... I have an entire archive of material on a Beige G3 with
    OS 8.6 - much of the material in files and so forth require staying in
    that Legacy environment to access stuff that can only be retrieved on
    older Native OS 8.6/9 apps.
    Is there a way, that I can access this computer from an OSX machine via a
    network? I know this may be a radical cross-platform situation but it
    would eliminate alot of headaches if i could figure out a way to create
    either a Remote Desktop, or Networked set-up where I can access the OS 8.6
    machine from one of our OSX (10.4.11) laptops or desktops.
    Any advice on the simplest/easiest way to set this up? The networks do all
    share a router for internet access, so they are physically connected via
    ethernet - that much is in place. If anyone's got a primer on how to make
    this configuration happen on the older machine, I'd be most grateful as I
    need to get a bunch of stuff off of there for a project and am currently
    having to shuttle things via old SCSI-port zip drives to a newer machine...
    (The Beige doesn't recognize USB or FW PCI cards -tho i have em installed...)
    THANK YOU!
    Mike

    Hi, I understand what you mean. The Shareway app as i understand it, is only designed to run on the older OS as the 'host' - per se. When I tried entering the "remote" computers' username/pw on it, it did not recognize it. Is there a version of Shareway that would go on the newer OSX computer? In any event, I was able to get an OSX machine to read the OS 8 machine - by using the IP Server address entry and the "Connect to Server" option for File Sharing from OSX to OS 8/9.... Problem I now have is, as per other post - i wanted to simply open Filemaker on the older OS 8.6 machine from a newer machine to enter some data.
    When I try that, the message is that A) I must have a newer FM version on my OSX
    machine to open that app - and B) it will convert the file on the OLDER machine
    to the NEWER machine's FM version - which isn't the goal as i still want to maintain my FM 4.1 database as an OS 8.6 file for when I am logging in on that machine.
    Doesn't seem it should have to be this complicated eh? Arrgh.
    Isn't there just a way to access and open docs on an 8.6 machine from another computer and perform tasks/functions "as if" i were logged into OS 8.6 -- would
    that be Remote Desktop? Can i run THAT from OSX to OS 8.6 ?
    Thanks!
    Mike

  • Network questions/concerns... please help

    Hi, I need some networking help/advice.  My neighbor asked if she can use my wifi to stream tv/movies only. I couldn't say no because I felt bad and didn't want to say i didnt trust them.  So I hooked up a Netgear router for the wifi while connecting my gaming systems by ethernet to my modem…  I tested the wifi from the Netgear system and it seemed to be working.  I stepped a way for a while and decided to check it again & was able to connect to the NETGEAR but not the internet anymore…..  I know I made no changes but couldn’t find the problem until i ran the network diagnostics on my MacBook….  it created a diagnostic log and suddenly repaired the connection. Is it possible the neighbor was trying to access my local network and caused problems to the wifi?…  how do I find something like this and is there a way to give her access without exposing any of my devices?… and is the way i’ve chosen to do it even protecting at all??…. 

    You have posted your question in a forum and section devoted to Apple and in particular to the MacBook Air. You may get an answer here -- but you may want to consider posting it somewhere that dedicated to networking issues where it may attract an answer from people with more expertise and interest in that type of issue. One example is http://forums.anandtech.com/forumdisplay.php?f=12

  • Network Questions on 2012 R2 Hyper-V Cluster

    I am going through the setup and configuration of a clustered Windows Server 2012 R2 Hyper-V host. 
    I’ve followed as much documentation as I can find, and the Cluster Validation is passing with flying colors, but I have three questions about the networking setup.
    Here’s an overview as well as a diagram of our configuration:
    We are running two Server 2012 R2 nodes on a Dell VRTX Blade Chassis. 
    We have 4-dual port 10 GBe Intel NICS installed in the VRTX Chassis. 
    We have two Netgear 12-Port 10 GBe switches, both uplinked to our network backbone switch.
    Here’s what I’ve done on each 2012 R2 node:
    -Created a NIC team using two 10GBe ports from separate physical cards in the blade chassis.
    -Created a Virtual Switch using this team called “Cluster Switch” with “ManagementOS” specified.
    -Created 3 virtual Nics that connect to this “Cluster Switch”: 
    Mangement (10.1.10.x), Cluster (172.16.1.x), Live Migration (172.16.2.x)
    -Set up VLAN ID 200 on the Cluster NIC using Powershell.
    -Set Bandwidth Weight on each of the 3 NICS.  Mangement has 5, Cluster has 40, Live Migration has 20.
    -Set a Default Minimum Bandwidth for the switch at 35 (for the VM traffic.)
    -Created two virtual switches for iSCSI both with 
    “-AllowManagementOS $false” specified.
    -Each of these switches is using a 10GBe port from separate physical cards in the blade chassis.
    -Created a virtual NIC for each of the virtual switches: 
    ISCSI1 (172.16.3.x) and ISCSI2 (172.16.4.x)
    Here’s what I’ve done on the Netgear 10GB switches:
    -Created a LAG using two ports on each switch to connect them together.
    -Currently, I have no traffic going across the LAG as I’m not sure how I should configure it.
    -Spread out the network connections over each Netgear switch so traffic from the virtual switch “Cluster Switch” on each node is connected to both Netgear 10 GB switches.
    -Connected each virtual iSCSI switch from each node to its own port on each Netgear switch.
    First Question:  As I mentioned, the cluster validation wizard thinks everything is great. 
    But what about the traffic the Host and Guest VMs use to communicate with the rest of the corporate network? 
    That traffic is on the same subnet as the Management NIC. 
    Should the Management traffic be on that same corporate subnet, or should it be on its own subnet? 
    If Management is on its own subnet, then how do I manage the cluster from the corporate network? 
    I feel like I’m missing something simple here.
    Second Question:  Do I even need to implement VLANS in this configuration? 
    Since everything is on its own subnet, I don’t see the need.
    Third Question:  I’m confused how the LAG will work between the two 10 Gbe switches when both have separate uplinks to the backbone switch. 
    I see diagrams that show this setup, but I’m not sure how to achieve it without causing a loop.
    Thanks!

    "First Question:  As I mentioned, the cluster validation wizard thinks everything is great. 
    But what about the traffic the Host and Guest VMs use to communicate with the rest of the corporate network? 
    That traffic is on the same subnet as the Management NIC. 
    Should the Management traffic be on that same corporate subnet, or should it be on its own subnet? 
    If Management is on its own subnet, then how do I manage the cluster from the corporate network? 
    I feel like I’m missing something simple here."
    This is an operational question, not a technical question.  You can have all VM and management traffic on the same network if you want.  If you want to isolate the two, you can do that, too.  Generally, recommended
    practice is to create separate networks for host management and VM access, but it is not a strict requirement.
    "Second Question:  Do I even need to implement VLANS in this configuration? 
    Since everything is on its own subnet, I don’t see the need."
    No, you don't need VLANs if separation by IP subnet is sufficient.  VLANs provide a level of security against snooping that simple subnet isolation provides.  Again, up to you as to how you want to configure things. 
    I've done it both ways, and it works both ways.
    "Third Question:  I’m confused how the LAG will work between the two 10 Gbe switches when both have separate uplinks to the backbone switch. 
    I see diagrams that show this setup, but I’m not sure how to achieve it without causing a loop."
    This is pretty much outside the bounds of a clustering question.  You might want to take network configuration questions to a networking forum.  Or, you may want to talk with Netgear specialist.  Different networking
    vendors can accomplish this in different ways.
    .:|:.:|:. tim

  • Advice for Building Small Network Question

    Hello,
    I am building a small network environment which will connect to a larger office, scalability is important.  We will begin having about 30 users which will all need VOIP services.  The VOIP services will be hosted by a cloud provider.  My question is as of now I am looking to obtain a Cisco 2921 ISR Router and then a Cisco 2960-X 48Gig POE, and my main question is I am confident the switch can handle the power and operation of the phones but just to make sure I should not run into any problems with the router as far as forwarding the data, correct?  Any other comments or suggestions would be appreciated.
    Thanks,
    Joe

    Duplicate post. 
    Go HERE.

  • Windows Clustering Networks question...

    Hi all;
    This is my scenario:
    I have installed Windows Server 2012 on two servers. Then enabled Windows Clustering feature on it. The shared storage is based on Fibre Channel technology. Each server has 4 NICs and I have splitted them as followis:
    One NIC for remote mangement of the servers with the range of 172.16.105.0/24.
    One NIC dedicated for heartbeat communication.
    Two NICs has been bundled together with NIC Teaming feature of the operating system.
    But as you see in the following figure there are 4 Cluster Network links:
    Is it normal?
    Thanks
    Please VOTE as HELPFUL if the post helps you and remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading
    the thread.

    Hi,
    Just want to confirm the current situations.
    Please feel free to let us know if you need further assistance.
    Regards.
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Some very "newbie" networking questions -- trying to get started

    Hello all. Since this forum is so friendly for issues related to Arch, I thought I'd post my semi-arch related question.
    I'm trying to create a network for my house, consisting of about 3 computers. I have a book reference, TCP/IP Network Administration from O'reilly, but I think I need a bit of a "kick-start" in order to get to a level in which I can comfortably understand the book (if that makes sense).
    I've got internet access working by connecting to a router and having everything configured by DHCP (ie, in rc.conf, eth0="dhcp"). What's bothering me (and I don't even know if it should) is that the other computers on the physical network are not visible to me.
    IE, when I try to connect to them with their host name, it doesn't recognise them. My understanding of that is that either I need to manually set the hostnames of the other computers on the network in /etc/hosts, or use something like a DNS server on one of the computers in the network in order to recognize the others.
    My other doubt is that I think I've got a dynamic IP address (though it might be static, I'm not quite sure). Does that change things?
    I don't expect you guys to completely run through me setting up the network (that's what the book is for!) but some basic advice on either my misconceptions (I'm sure I have plenty) or related in general to my situation would be awsome and highly appreciated. I'd also be happy to provide any additional info that would be helpful.
    Thanks in advance.

    ralvez wrote:
    My set up is simple.
    I have a Linux router running on an old Pentium machine. It has two cards, one configured for the private network (with an address like 192.168.1.1) and the second card set up to take addresses from DHCP ( since that's how Rogers sends you the public address).
    In that machine I run my firewall, SmoothWall (smoothwall.org) and have enabled NAT so the machines in the inside network can go to the Internet.
    I have Samba set up in another machine to share files (that's an Arch system) with static IP, my daughter's machine (another Arch system), my system (obviously another Arch with static IP) and my wife's machine with Windows XP system (static IP too).
    So, the key concept here  are:
    1. Use static IPs for the private network
    2. Use DHCP for Rogers
    3. Use NAT in your router so all the machines can go to the Internet but no one from the Internet can get to them.
    Hope this helps.
    R
    p.s. feel free to contact me off the list if you need further details/help.
    Aha! So, for example, the network 192.168.0.0 where mask is 255.255.255.0 is a private network set up by my router, right?
    So the addresses in 192.168.0.0 never change, but the public IP address of the hosts do change?
    Does that mean that if, for example, I have a host called 192.168.0.32 that its address never changes? Can I simply add that to all the other hosts' /etc/hosts file and it won't change?
    All I was ever concerned about was allowing hosts in the network to contact each other via hostname. If that never changes then I'm all set.
    BTW, thanks for your continuing help!
    Last edited by Jessehk (2007-08-10 16:33:57)

  • Networking Question

    I have a T400 with Vista Business that has a couple of networking issues.
    First, I have a lot of trouble of dropping connections using wireless, probably related to other threads here about the Intel 5300 AGN adaptor. This does not happen when wired.
    More annoying is a problem I have when either wired or wireless where "Network discovery and file sharing" is always turned off, every time I want to access the network. I turn it on and then "make this network a private network" and I can see other devices on the network, HOWEVER they still can't discover my T400. I have several other "Vista" PC's running on the network without this issue.
    I realize this might be more of a Vista issue than a T400 hardware issue, but thought I would throw it out here since the wireless dropouts do appear to be hardware or T400 driver related and I suppose the network discovery issue might be related too, I just don't know.
    SHG
    Own IBM/Lenovo Models T43, Y510, T400, M58, T410

    You need to change the power saving settings in the properties of your WLAN card, not to save power, and also disallow windows from turning the card off in order to save power.
    There is a setting in Access Connections which can influence file
    and printer sharing. If you look at the profile's further settings,
    there is an entry for network security, file and printer sharing needs
    to be activated.
    I think this is a great feature of AC as it
    will override the windows settings, you can choose to allow or block in
    each profile; e.g. allowed at home, but blocked at the Airport or Hotel.
    Hope this helps
    Andy  ______________________________________
    Please remember to come back and mark the post that you feel solved your question as the solution, it earns the member + points
    Did you find a post helpfull? You can thank the member by clicking on the star to the left awarding them Kudos Please add your type, model number and OS to your signature, it helps to help you. Forum Search Option T430 2347-G7U W8 x64, Yoga 10 HD+, Tablet 1838-2BG, T61p 6460-67G W7 x64, T43p 2668-G2G XP, T23 2647-9LG XP, plus a few more. FYI Unsolicited Personal Messages will be ignored.
      Deutsche Community     Comunidad en Español    English Community Русскоязычное Сообщество
    PepperonI blog 

  • Network question HELP!

    I have a wired airport extreme in my office on a pc( i also use it to run 2 mac books wireless) and apple tv in living room.
    my question is!!!!
    can i put an airport express in my loft and use the ethernet plug wire to connect a pc (it doesnt have wireless) and if so how?

    Yes you can do that.
    If both your AirPort Extreme base station (AEBS) and AirPort Express (AX) are 802.11n capable, you would configure the AEBS to allow itself to be extended. You would then configure the AX to extend the network provided by the AEBS.
    If either your AEBS or AX does not have 802.11n capability, you would configure the AEBS to act as a WDS main base station and configure the AX to act as a WDS remote base station. The only downside is that the WDS link cuts the available wireless bandwidth in half.

  • Network question / using extreme apple tv and airprt express

    I have a wired airport extreme in my office on a pc( i also use it to run 2 mac books wireless) and apple tv in living room.
    my question is!!!!
    can i put an airport express in my loft and use the ethernet plug wire to connect a pc (it doesnt have wireless) and if so how?

    Yes, you can use an express to create a network for presentations, your main concern would be configuring it, which you would need to connect it to a computer to do.

Maybe you are looking for

  • How To Access Airport Time Capsule From Outside Home?

    I had Purchased new Airport Time Capsule 2TB, i successfully add it to my local network of the my Home, and connected well remotely with my Mac on the local network. Is there any way to access my backup files on Airport TC while I been out side home

  • HT201210 i have problem whit "do not diturb" how can i fix it?

    my do not distorb aplication from my iphone 4s is not working,i traid to restore the iphone ,and is not working to restore

  • Help.iTunes could not connect to the iPod, you must enter passcode first...

    My wife recently turned her iTouch on, to find this connect to iTunes screen. When we connect it to iTunes, we get this pop up. The problem is, the iPod will not allow us to do anything but shut it off and it remains on the connect to iTunes screen?

  • F111: netting outgoing payments

    Dear All, We have just done a service package upgrade from 605 level 09 to 605 Level 11. I used to be able to net vendor invoices into 1 single payment for the same vendor. The system is now generating a payment for each invoice. We would like to net

  • Applet-Browser communication

    I have an applet that runs inside one frame of a two frame browser window. As far as I can tell from the JDK documentation, the only way an applet can interact with the browser is the requests for displaying particular pages e.g.using the showDocumen