aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMarvin Borner2018-08-30 18:32:59 +0200
committerMarvin Borner2018-08-30 18:32:59 +0200
commit3df3c2faedf287fadf526f52c8aba8d1f567416a (patch)
tree5ea30bad4109fac9859869a76c90a7ec68e957d5
parent4822eb8ec0390967fc22bf7c92cccd84a5ebba7f (diff)
IP address changed due to ethernet using of local server
-rw-r--r--app/src/main/java/me/texx/Texx/RoutingActivity.kt5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/src/main/java/me/texx/Texx/RoutingActivity.kt b/app/src/main/java/me/texx/Texx/RoutingActivity.kt
index 168d072..bed9973 100644
--- a/app/src/main/java/me/texx/Texx/RoutingActivity.kt
+++ b/app/src/main/java/me/texx/Texx/RoutingActivity.kt
@@ -17,7 +17,7 @@ import java.io.IOException
* should be started next
*/
class RoutingActivity : AppCompatActivity() {
- private val serverAddress = "192.168.0.102"
+ private val serverAddress = "192.168.0.104"
override fun onCreate(savedInstanceState: Bundle?) {
matchDressCode()
@@ -31,6 +31,9 @@ class RoutingActivity : AppCompatActivity() {
verifyLogin()
}
+ /**
+ * Checks if client is connected to the internet by pinging google
+ */
@Throws(InterruptedException::class, IOException::class)
fun isConnected(): Boolean {
val command = "ping -c 1 google.com"