Thread: Server-Client Program

  1. #1
    Registered User
    Join Date
    Dec 2012
    Posts
    7

    Server-Client Program

    Hey,

    I want to use a small server-client program, by using two separated machines. The thing is that none of them has ubuntu as the main OS. In fact, these OS are in a virtualbox.
    So the question is, what are the real address to connect the machines?
    (my program is almost literally based in this one Linux Howtos: C/C++ -> Sockets Tutorial).

    Thanks

  2. #2
    Registered User
    Join Date
    May 2012
    Posts
    1,066
    This has nothing to do with C but with your configuration of VirtualBox.

    A quick search found an article about networking in VirtualBox (if the two VirtualBoxes are on different physical machines you probably need to use port-forwarding).

    I suggest to ask the experts for further questions.

    Bye, Andreas

  3. #3
    Just kidding.... fnoyan's Avatar
    Join Date
    Jun 2003
    Location
    Still in the egg
    Posts
    275
    Change your network settings of Guest OS from NAT (which is default) to Host-only (most probably this will work for you).
    With NAT, you do not have access to other OS's.

    Host-Only Networking with VirtualBox - Christopher Maier's Technical Blog

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Server and client in the same program
    By smithx in forum Networking/Device Communication
    Replies: 1
    Last Post: 11-25-2008, 09:30 PM
  2. c program client server
    By steve1_rm in forum Networking/Device Communication
    Replies: 3
    Last Post: 01-24-2008, 10:33 AM
  3. Client-server program
    By erictran in forum C Programming
    Replies: 3
    Last Post: 09-18-2006, 07:59 PM
  4. client/server program
    By purple in forum C Programming
    Replies: 3
    Last Post: 11-01-2002, 08:52 PM
  5. Server client program help please.
    By XiReDDeViLiX in forum C++ Programming
    Replies: 15
    Last Post: 04-03-2002, 09:21 PM

Tags for this Thread