*
The moose likes Java in General and the fly likes Java Socket Connection Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Java Socket Connection" Watch "Java Socket Connection" New topic
Author

Java Socket Connection

a sq
Greenhorn

Joined: Apr 09, 2010
Posts: 3
Can two computers be connected through Socket connection where two computers are using same wireless network ?
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Don't see why not--no different than if they were wired.
a sq
Greenhorn

Joined: Apr 09, 2010
Posts: 3
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

Joined: Sep 29, 2008
Posts: 12617

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java Socket Connection
 
Similar Threads
Connecting 2 Computers
Connecting through a lan
connect exception
sockets
exception