Server-Client Program

This is a discussion on Server-Client Program within the C Programming forums, part of the General Programming Boards category; Hey, I want to use a small server-client program, by using two separated machines. The thing is that none of ...

  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
    269
    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, 08:30 PM
  2. c program client server
    By steve1_rm in forum Networking/Device Communication
    Replies: 3
    Last Post: 01-24-2008, 09: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, 07:52 PM
  5. Server client program help please.
    By XiReDDeViLiX in forum C++ Programming
    Replies: 15
    Last Post: 04-03-2002, 08:21 PM

Tags for this Thread


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21