0

I was just wondering, also asking here because I couldn't find an answer (in English) that explained this to me, Is it posible to request data say from IP adress 10.22.44.27 to 10.48.38.28 so basically acting as a global connection between these two devices instead of requestig info from a server? Is that possible, do I need third party tools / Libraries / node.js and will it work on android?

Jacob
  • 25
  • 7
  • Technically you can but android devices need to understand incoming requests and respond properly, like webservers. I'm not sure if you can achieve this with pure android because I'm not that familiar with android ecosystem. You will probably need a third party lib/app. – Ertuğrul Dec 30 '16 at 14:29

1 Answers1

2

Can I use ajax to send and retrieve data between 2 android devices?

Ajax is the act of making an HTTP request from JavaScript (embedded in a web page) without leaving the page. You need a client to make the request and an HTTP server to receive it and make the response.

You can run a web browser on Android (several are available).

You can run an HTTP server on Android.

So, yes, it is possible.

instead of requestig info from a server

No, by definition, Ajax needs a server.

Community
  • 1
  • 1
Quentin
  • 914,110
  • 126
  • 1,211
  • 1,335
  • Thanks, but is there a way that I can achieve a data transfer from anywhere in the world to anywhere using JavaScript (and any libraries)? – Jacob Jan 01 '17 at 10:17