404: Not found

22 views
Skip to first unread message

mohamed...@esprit.tn

unread,
Apr 21, 2017, 5:32:53 AM4/21/17
to CodenameOne Discussions
IDE: NetBeans/
OS
Simulator 

My Wampserver is running in port 8080,  

I create a text file under www directory, the URL that I am using is : "http://localhost:8080/codenameone/tst.txt" and when I run the code  it returns Error 404: Not found.
 I just did that and checked the URL multiple times already, even when I copy the URL in the URL bar it works but when i run the code with codenameOne no.



Steve Hannah

unread,
Apr 21, 2017, 12:46:23 PM4/21/17
to codenameone...@googlegroups.com
If the simulator is running on the same machine as WAMP, then *triple* check the URL in your app.  It is probably incorrect.  If it is running on a different machine, then you can't use the localhost URL.  You need to use an address for your server that is accessible from the device.

Steve

--
You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discussions+unsub...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/39e836a9-ba15-4b93-b8f9-1d4c72128dc8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Steve Hannah
Software Developer
Codename One
Reply all
Reply to author
Forward
0 new messages