iOS Question Bridge cannot connect to server (local)

ajk

Active Member
Licensed User
Longtime User
I had to change the IP address manually (to 192.168.1.125 - fixed address delivered by router - if I do not use key.txt then local builder get address) because local builder wanted to use 192.254.95.254. But now I B4i bridge say: Cannot connect to 192.168.1.125.

B4i bridge works correctly with hosted service. So I think problem is somewhere in my Mac. How to fix it?
 

ajk

Active Member
Licensed User
Longtime User
If I leave key.txt with 192.168.1.125 file with manually corrected address then goes like in first post = "Cannot connect to 192.168.1.125" message on phone

If I remove key.txt then I receive:
B4X:
Last login: Wed Aug 30 18:12:41 on ttys000
MacBook-Air:~ mac$ /Users/mac/Desktop/xx\ 2.command ; exit;
Build server version: 4.3
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2017-08-30 18:13:12.178:INFO::main: Logging initialized @231ms to org.eclipse.jetty.util.log.StdErrLog
Loading default configuration file.
AppPath=/Users/mac/Desktop/b4
Mac version: 10.12.6
Xcode path: /Applications/Xcode.app/Contents/Developer
Xcode version: Xcode 8.3.3
Build version 8E3004b

Creating key for: 169.254.95.254
2017-08-30 18:13:14.532:INFO:oejs.Server:main: jetty-9.4.z-SNAPSHOT
2017-08-30 18:13:14.594:INFO:oejs.session:main: DefaultSessionIdManager workerName=node0
2017-08-30 18:13:14.595:INFO:oejs.session:main: No SessionScavenger set, using defaults
2017-08-30 18:13:14.597:INFO:oejs.session:main: Scavenging every 660000ms
2017-08-30 18:13:14.605:INFO:oejsh.ContextHandler:main: Started o.e.j.s.ServletContextHandler@42dafa95{/,file:///Users/mac/Desktop/b4/www,AVAILABLE}
2017-08-30 18:13:14.618:INFO:oejs.AbstractNCSARequestLog:main: Opened /Users/mac/Desktop/b4/logs/b4j-2017_08_30.request.log
2017-08-30 18:13:14.650:INFO:oejs.AbstractConnector:main: Started ServerConnector@7e0b0338{HTTP/1.1,[http/1.1]}{0.0.0.0:51041}
2017-08-30 18:13:14.691:INFO:oejus.SslContextFactory:main: x509=X509@3c0f93f1(rootca,h=[],w=[]) for SslContextFactory@31dc339b(file:///Users/mac/Desktop/b4/key/key.jks,null)
2017-08-30 18:13:14.692:INFO:oejus.SslContextFactory:main: x509=X509@544fe44c(jetty,h=[169.254.95.254],w=[]) for SslContextFactory@31dc339b(file:///Users/mac/Desktop/b4/key/key.jks,null)
2017-08-30 18:13:14.936:INFO:oejs.AbstractConnector:main: Started ServerConnector@38364841{SSL,[ssl, http/1.1]}{0.0.0.0:51042}
2017-08-30 18:13:14.937:INFO:oejs.Server:main: Started @2991ms
Build server is ready
https://169.254.95.254:51042
http://169.254.95.254:51041
Build server version: 4.30

and "Cannot connect to 192.168.1.125" message on phone
 
Upvote 0

azzam223

Active Member
Licensed User
Longtime User
are you use vmware program?
if that is then the problem is from it you must change the network to option that use unique ip address or diconnect it then after minute connect it. because the problem is from vmware network
 
Upvote 0

azzam223

Active Member
Licensed User
Longtime User
because local builder wanted to use 192.254.95.254

Erel the vmware using this ip always when there is no real connection this problem happens to me some times

when I disconnect the vmware network and after one minute connect it again the problem solved
 
Upvote 0

ajk

Active Member
Licensed User
Longtime User
Is the printed IP address correct in that case?
Yes it is correct address

the vmware using this ip always
I'm not using vmware - but I have AnyDesk installed on Mac. I have tried all combinations (with AnyDesk (with connetsion & without) with AnyDesk removed) with same result described above. But I thin it may be the case because after removing and reinstalling AndDesk adress used by Local Mac Builder changed to 169.254.41.18.
 
Last edited:
Upvote 0

ajk

Active Member
Licensed User
Longtime User
1)
B4X:
Last login: Thu Aug 31 10:58:10 on ttys000
MacBook-Air:~ mac$ /Users/mac/Desktop/xx\ 2.command ; exit;
Build server version: 4.3
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2017-08-31 10:59:42.112:INFO::main: Logging initialized @489ms to org.eclipse.jetty.util.log.StdErrLog
Loading default configuration file.
AppPath=/Users/mac/Desktop/b4
Mac version: 10.12.6
Xcode path: /Applications/Xcode.app/Contents/Developer
Xcode version: Xcode 8.3.3
Build version 8E3004b

Forcing ip address to: <192.168.1.125>
2017-08-31 10:59:43.230:INFO:oejs.Server:main: jetty-9.4.z-SNAPSHOT
2017-08-31 10:59:43.343:INFO:oejs.session:main: DefaultSessionIdManager workerName=node0
2017-08-31 10:59:43.343:INFO:oejs.session:main: No SessionScavenger set, using defaults
2017-08-31 10:59:43.347:INFO:oejs.session:main: Scavenging every 660000ms
2017-08-31 10:59:43.366:INFO:oejsh.ContextHandler:main: Started o.e.j.s.ServletContextHandler@464bee09{/,file:///Users/mac/Desktop/b4/www,AVAILABLE}
2017-08-31 10:59:43.397:INFO:oejs.AbstractNCSARequestLog:main: Opened /Users/mac/Desktop/b4/logs/b4j-2017_08_31.request.log
2017-08-31 10:59:43.478:INFO:oejs.AbstractConnector:main: Started ServerConnector@6adede5{HTTP/1.1,[http/1.1]}{0.0.0.0:51041}
2017-08-31 10:59:43.561:INFO:oejus.SslContextFactory:main: x509=X509@192b07fd(rootca,h=[],w=[]) for SslContextFactory@64bfbc86(file:///Users/mac/Desktop/b4/key/key.jks,null)
2017-08-31 10:59:43.562:INFO:oejus.SslContextFactory:main: x509=X509@64bf3bbf(jetty,h=[169.254.41.18],w=[]) for SslContextFactory@64bfbc86(file:///Users/mac/Desktop/b4/key/key.jks,null)
2017-08-31 10:59:43.912:INFO:oejs.AbstractConnector:main: Started ServerConnector@71248c21{SSL,[ssl, http/1.1]}{0.0.0.0:51042}
2017-08-31 10:59:43.912:INFO:oejs.Server:main: Started @2295ms
Build server is ready
https://<192.168.1.125>:51042
http://<192.168.1.125>:51041
Build server version: 4.30
Adding user to keychain: ahf5qsv
11:00:55| Compilation time: 5861, ahf5qsv, queue: 0, success: true
and "Cannot connect to 192.168.1.125" message on phone

2) Simulator opens correctly & trying to run program
-in simulator message: ip address 192.168.1.125, waiting for IDE to connect...
-I have to accept incoming network connections
-black screen


3)
a)If I try to generate B4i-Brigde with Simulator selected then: process can not access "...path\Objects.temp.dat " message as a result
b) If I generate B4i-Bridge with Device selected then generates correctly. I can open address suggested in dialog "Open mobile Safari and navigate to...". Then when I click on Install App cirlce - nothing happens /program do not install - so currently I'm without B4I Bridge ;(
PS I have installed B4i Bridge using remote Builder service
PS' Remotely build B4i-Brigde can not connect to local Mac Builder? but I can not install local build of B4i Bridge.
 
Last edited:
Upvote 0

ajk

Active Member
Licensed User
Longtime User
OK FIXED

Reason: mac created inner IP for phone USB connection => this address was intercepted by B4i MacBuilder
Hot to fix: open network preferences, turn OFF USB connection

Thank you very much for help for all !!
 
Upvote 0
Top