mahicool / barcodeoverip

Automatically exported from code.google.com/p/barcodeoverip
0 stars 0 forks source link

ICS Client does not connect to server., #1

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Launch BarcodeOverIP
2. Tap Server to connect

What is the expected output? What do you see instead?
Attempt to connect to server
Dialog on client indicates Error! - Unexpected exception occurred.
Server indicates:
Last Client   /192.168.1.89 on port 60080
              ^
(note.  port number changes on each connect.

Firewall is disabled.
Android running over WiFi, Laptop Ethernet connected.

What version of the product are you using? On what operating system?
BarcodeOverIP-Server 0.6.2 on Windows 7 
BarcodeOverIP-Client 0.9.4 on HTC OneX Android 4.0.3

Please provide any additional information below.

Original issue reported on code.google.com by Derek.ma...@superna.net on 2 May 2012 at 4:04

GoogleCodeExporter commented 8 years ago
Problem here is the InetAddress.isReachable().

Windows firewall blocks the kind of packets that this method uses on ICS. To 
fix this method needs to be removed and the client should rely on it's ability 
to connect to the server to determine host accessibility.

This will mean the error messages will be less specific (IE Unable to connect 
and/or server not running" but will mean the program is usable on Windows Vista 
and above without the person having to disable their firewall.

Source: I'm a full time Java dev. Would commit change myself but don't have 
time or tools to test...

Original comment by minuszer...@gmail.com on 18 Dec 2012 at 7:35

GoogleCodeExporter commented 8 years ago
Workaround for this On Win7:  Open "Windows Firewall with Advanced Security", 
Click "Inbound Rules", Click "New Rule", Select "Port" type, "Next", TCP & 
Specific local ports: 7, Next, "Allow The Connection", "Next", Tick them all, 
"Next", Name it and click finish. 

The app should now work.

Original comment by minuszer...@gmail.com on 18 Dec 2012 at 7:45

GoogleCodeExporter commented 8 years ago
Im getting this error
the host is unreachable :2500 ms time out(-3)

Original comment by mgolm...@gmail.com on 1 Jun 2013 at 10:05

GoogleCodeExporter commented 8 years ago
I'm also getting the following error:

'The host is unreachable: 2500 ms time out (-3)'

This is with version 1.0.3-r3 on a Galaxy S3. The server is running on Windows 
7 64-bit. I can ping my phone from the PC. I've added a new rule into Windows 
Firewall as described in the post by minuszer, but it doesn't help.

Original comment by heino...@gmail.com on 5 Sep 2013 at 7:54

GoogleCodeExporter commented 8 years ago
I am seeing this too. If I turn off the windows firewall, I don't have any 
issues. If I create a firewall rule to allow the ports I see being used in 
wireshark (41788 and 7), it still doesn't work. 
The line from heino* describes my situation too:
This is with version 1.0.3-r3 on a Galaxy S3. The server is running on Windows 
7 64-bit. I can ping my phone from the PC. I've added a new rule into Windows 
Firewall as described in the post by minuszer, but it doesn't help.

Original comment by alexjh...@gmail.com on 19 Sep 2013 at 6:00

GoogleCodeExporter commented 8 years ago
I'm also getting the following error:

'The host is unreachable: 2500 ms time out (-3)'
I am seeing this too. If I turn off the windows firewall, I don't have any 
issues. If I create a firewall rule to allow the ports TCP and UPD I see being 
used in wireshark (41788), it still doesn't work. 

Original comment by sa...@saketgroup.co.in on 19 Dec 2013 at 7:36