Questions tagged as 'socket'

0
answers

Keep Adnroid connected to ESP8266 as an access point

First of all the code works perfectly on any cell phone that uses a version of the android prior to Lollipop. From it to the most recent is that the problem occurs. What happens is that my app connects normally to the AP created on the ESP8266,...
asked by 19.08.2017 / 18:01
0
answers

Socket error only on Android 7

This problem only occurs on Android 7! In other versions the operation is perfect. And running tests on an S8 with smart network switching, by a friend's reports, is also working as it should. Mine is a G5 Plus and has no way to turn off s...
asked by 13.07.2017 / 20:17
0
answers

Socket with JSON in java

Good night everyone. I have a problem, in case I have a software that runs on port 3333 on a particular computer, and it has an api, but I need to recover it through another computer and get the array using the GSON library Google. Below my c...
asked by 01.07.2017 / 03:39
1
answer

Problem with PHP Sockets and html5

I have a one problem, I have a page called server.php and another client.php, the client code is as follows: <script src="scripts/jQuery/jquery-3.2.1.min.js"></script> <script> var socket = new WebSocket('ws://12...
asked by 30.06.2017 / 01:58
2
answers

Client-server connection via socket

I need to make a socket connection as follows: My Android application has a "Confirm" button - when clicking the button it has to send a message to the server and after that the server has to return a message to my application stating "succes...
asked by 21.06.2017 / 20:45
1
answer

How to get the IP of the Android device to be used in Socket () in java?

I'm trying to implement peer-to-peer communication (device to device) and I need to get the real IP of the server device to then insert into the client but I can not. I'm using: ServerSocket server = new ServerSocket(8000); Log.v("TAG", server...
asked by 27.06.2017 / 03:49
0
answers

How to do a SQL query via Socket?

How to get the client to pass a query to the server and then return what the client requested? Example: The client passes the server the string: sql = "Select nome From Aluno"; and the server would have to return the name or the names...
asked by 06.06.2017 / 20:05
0
answers

Update information received from arduino

I have made an application that interacts with a robotic head with Arduino and would like to know how to automatically receive all the data of the robot without having to trigger the sending of some command A log-like job, always keeping the...
asked by 06.06.2017 / 01:07
1
answer

web socket server only works with localhost

I'm setting up a chat where I have a client.php and a server.php. In the server.php code I define IP as 127.0.0.1 and Port 1900. When I change the IP to fixed IP or to hostname, the server.php can not start, it only works if I leave 127.0.0.1 or...
asked by 27.05.2017 / 16:23
1
answer

Question about Socket php

I'm starting to study about Sockets, and I took as base the code from the following video: link The question is: Why does it only work when calling through the cls in CMD? When I start the apache service in Xampp, and I try to run the serve...
asked by 12.05.2017 / 17:23