• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

making client/server connection within the same network?

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sorry if the title confused you. What I was wondering is whether there is a way to make a server/client connection using one computer without using "localhost"? I thought I could do it with VirtualBox, but the virtual machine and the host machine end up having the same IP address. If we could not do it with a computer, how about two computers but using the same network?

Thanks in advance,
 
Sheriff
Posts: 22783
131
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Aadesh Nguyen wrote:Sorry if the title confused you. What I was wondering is whether there is a way to make a server/client connection using one computer without using "localhost"? I thought I could do it with VirtualBox, but the virtual machine and the host machine end up having the same IP address. If we could not do it with a computer, how about two computers but using the same network?

Thanks in advance,


As far as Windows is concerned, the VirtualBox virtual machine is a different computer. In your case they share the same IP address because that's probably how you set them up. You can also use bridge-mode networking for the virtual machine, which means that the virtual machine will use the same physical network card as usual but will get a different IP address.
Because you now have the two machines share the same IP address, Windows has no way whatsoever of communication with the virtual machine through the network. If you try to connect to "localhost" or to the IP address, it will connect to itself.
 
reply
    Bookmark Topic Watch Topic
  • New Topic