asp.net - switched from webform to mvc and now can't have android contacting localhost -


i have test application wrote in days. used simple asp.net webforms application perform login android application. rewrite asp.net application using mvc, changed former url string from

<string name="web_login_page">http://10.0.2.2:51469/blabla.com/account/android/logindroid.aspx</string> 

to

<string name="web_login_page">http://10.0.2.2:52707/account/login</string> 

run java code

string urltologinpage = getstring(r.string.web_login_page);  webview.loadurl(urltologinpage); 

and android's webview throws:

bad request - invalid hostname

http error 400. request hostname invalid.

tried play bit no success. know reason this?

replace :

<string name="web_login_page">http://10.0.2.2:52707/account/login</string> 

with

<string name="web_login_page">http://your_machine_ip_address/account/login</string> 

Comments

Popular posts from this blog

matlab - Deleting rows with specific rules -

jquery - How would i go about shortening this code? And to cancel the previous click on click of new section? -