11/06/2010, 03:33 PM
|
#1 (permalink) |
|
Member
![]() Join Date: Nov 2009
Posts: 18
Likes Received: 0
Thanks: 10
Thanked 0 Times in 0 Posts
|
Is it possible to access a local server on my computer using an ajax request on the emulator? What about on a device plugged into USB?
I know how to access remote pages now with ajax, but would like to develop a cloud type program on my local machine. |
11/06/2010, 03:40 PM
|
#2 (permalink) |
|
Member
![]() ![]() Join Date: Jun 2009
Location: Silicon Valley
Posts: 787
Likes Received: 30
Thanks: 3
Thanked 102 Times in 67 Posts
|
If you run a local server all you need is to access the ip address your computer has.
__________________
Apps: MyQ for Netflix (Phone/TouchPad), Giantbomb (Phone), Excavate (Reddit/Digg clients for TouchPad) |
11/06/2010, 10:39 PM
|
#4 (permalink) | |
|
Member
![]() ![]() Join Date: Jun 2009
Location: Silicon Valley
Posts: 787
Likes Received: 30
Thanks: 3
Thanked 102 Times in 67 Posts
|
Quote:
__________________
Apps: MyQ for Netflix (Phone/TouchPad), Giantbomb (Phone), Excavate (Reddit/Digg clients for TouchPad) |
|
11/06/2010, 11:59 PM
|
#5 (permalink) | |
|
Homebrew Developer
![]() Join Date: Aug 2009
Location: Midlothian, VA
Posts: 1,218
Likes Received: 8
Thanks: 1,046
Thanked 485 Times in 260 Posts
|
Quote:
As in: you are on a router, and the following is your IP table (note, this is an exception): your computer - 192.168.0.3 your phone - 192.168.0.4 your emulator - 10.0.0.10 (the emulator runs on in the 10.x block as it is handled by VirtualBox) So, inside your emulator and phone you should be able to send a request to http://192.168.0.3
__________________
Arthur Thornton webOS Application Engineer, Appstuh Writer, webOS Nation My Websites: http://www.arthurthornton.net My apps: Sparrow for Twitter Voice Memos |
|
11/07/2010, 07:11 AM
|
#6 (permalink) | |
|
Member
![]() Join Date: Nov 2009
Posts: 18
Likes Received: 0
Thanks: 10
Thanked 0 Times in 0 Posts
|
Quote:
Maybe this isn't possible. Thanks for the help guys. |
|
![]() |
|
| Tags |
| ajax, server |
| Thread Tools | |
| Display Modes | |
|
|



