File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java Socket Connection

 
a sq
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can two computers be connected through Socket connection where two computers are using same wireless network ?
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don't see why not--no different than if they were wired.
 
a sq
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Say two computers are using same wireless network,

so if I go and see there IP through site like whatismyip.com , it comes out to be same for both.

However if I try to connect through the IP that comes in ipconfig which are different for both of them, ServerSocket does not get connection from client.
That means they seem to be not connected that way.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not knowing anything about your networking setup, I'd just assume you're going through cable/DSL/fiber so all the outside world would see is that IP address. That's not a reasonable way to find out IP addresses--check on each machine.

For example, I'm on a MBP and currently connected to another laptop (on same wireless network), another Mac (it's wired and sharing iTunes) and a Linux box (wired).

Your issue is (most likely) not due to *how* your machines are connected to your network.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic