Skip to content

Snappy1

  • Home
  • Android
  • What
  • How
  • Is
  • Can
  • Does
  • Do
  • Why
  • Are
  • Who
  • Toggle search form

[FIXED] android – Unable to resolve host. No address associated with hostname

Posted on November 11, 2022 By

Solution 1 :

Enter the IPAddress of your Computer in the place of JarsUbuntuComputer and also make sure Port number is same or not

also add this in Manifest in Application tag

android:usesCleartextTraffic="true"
android_allowClearUserData="true"

Full Code

<application
    android_allowBackup="true"
    android_icon="@mipmap/ic_launcher"
    android_label="@string/app_name"
    android_roundIcon="@mipmap/ic_launcher_round"
    android_supportsRtl="true"
    android_theme="@style/AppTheme"
    android_usesCleartextTraffic="true"
    android_allowClearUserData="true">
    <activity android_name=".MainActivity"></activity>

Problem :

I’m trying to connect my mobile app with my desktop app, but it’s impossible for me.
Both devices are connected to the same wifi and i have the internet permisions on my manifest.

MANIFEST AFTER application tag

<uses-permission android_name="android.permission.INTERNET" />
<uses-permission android_name="android.permission.ACCESS_NETWORK_STATE" />

enter image description here

ERROR

I/System.out: Unable to resolve host "JarsUbuntuComputer": No address associated with hostname

Comments

Comment posted by JarssS8

with the IP number works correctly, but i tought that can put the hostname for be sure that is never going to change.

Comment posted by Md Rehan

No its impossible to use hostname, 1) You can use static IP. 2) Generally in desktop your ip will not change if you are connecting with same router or wifi

READ  [FIXED] java - Firebase snapshot to json flutter model
Powered by Inline Related Posts
Android Tags:android, connection, hostname, networking, wifi

Post navigation

Previous Post: [FIXED] How to get Firebase auth token in Android login
Next Post: [FIXED] android – what should be the input and output forom of variables for float object detection model

Related Posts

[FIXED] HOW TO FIX The following classes could not be found: – android.support.design.widget.BottomNavigationView Android
[FIXED] java – How to disable dark mode in android 9 Android
[FIXED] android – (React Native) How to uploading App Signing Key to Google Play Console? Android
[FIXED] java – How to identify a user on android? Android
[FIXED] java – SignalR Core Android client with JWT authintication returning NULL Android
[FIXED] Android Room Java Inner Join with Count Android

Archives

  • April 2023
  • March 2023
  • February 2023
  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022

Categories

  • ¿Cómo
  • ¿Cuál
  • ¿Cuándo
  • ¿Cuántas
  • ¿Cuánto
  • ¿Qué
  • Android
  • Are
  • At
  • C'est
  • Can
  • Comment
  • Did
  • Do
  • Does
  • Est-ce
  • Est-il
  • For
  • Has
  • Hat
  • How
  • In
  • Is
  • Ist
  • Kann
  • Où
  • Pourquoi
  • Quand
  • Quel
  • Quelle
  • Quelles
  • Quels
  • Qui
  • Should
  • Sind
  • Sollte
  • Uncategorized
  • Wann
  • Warum
  • Was
  • Welche
  • Welchen
  • Welcher
  • Welches
  • Were
  • What
  • What's
  • When
  • Where
  • Which
  • Who
  • Who's
  • Why
  • Wie
  • Will
  • Wird
  • Wo
  • Woher
  • you can create a selvedge edge: You can make the edges of garter stitch more smooth by slipping the first stitch of every row.2022-02-04
  • you really only need to know two patterns: garter stitch

Recent Posts

  • Can Vicks humidifier be used without filter?
  • What color is Spanish green?
  • How old is Jamie in The War That Saved My Life?
  • When should I use scalp massager for hair growth?
  • Can I put polyurethane over liming wax?

Recent Comments

No comments to show.

Copyright © 2023 Snappy1.

Powered by PressBook Grid Dark theme