All Questions
19 questions
0
votes
0
answers
30
views
How can i get three recieving messages from socket server instead two?
Hi guys i cant figure out why socket server sends me second message with the third one at the same time. However I want to get message one by one not together at the same time. How can i do this?
...
0
votes
0
answers
557
views
Connect to a server using public IPv4 address in python
I'm experimenting with socket server-client communication using python 3 socket module. Just to test if an eventual connection can be made, I've tried to program the simplest scenario possible. Thus ...
0
votes
1
answer
444
views
Get IP of incoming client - TCP - VB.Net
I'm triyng to get the IP of an incoming client connection request :
1_ My computer scan all the IP in my network
2_ When it find a valid IP , it send to it a connection request
3_ The destination ...
0
votes
1
answer
185
views
Connected to the same router = Same ip and port?
Three computers connected to the same router will have the same public IP. If these computers send a request to my server, will they all have the same PORT as well or are there exceptions?
EDIT: When ...
0
votes
1
answer
629
views
get the ip address from a remote client: remote_endpoint: Transport endpoint is not connected
does anyone know how to get the ip address of a remote client from a socket
i have tried this function :
i have tried to use this function :
std::string s =socket.remote_endpoint().address()....
0
votes
1
answer
200
views
Why inet_ntoa always returns false IP adresse (socket programming inc )
i have simple client/server app with socket , so the client connect to the server with the server ip , i want to return ip of connected client with inet_ntoa but it always returns false ip of ...
0
votes
0
answers
197
views
Listening for events on server using TCP IP Server/Client model
I would like to create a TCP IP listener on my windows server 2012 to listen for certain events coming from a web based client. When I receive these events, I will perform actions on the server and ...
0
votes
0
answers
43
views
C++ - Still getting local ip instead of clients
I've a problem on getting the clients ip address using sockets.
I still get '127.0.0.1' as the client-ip. But why? Wheres the problem?
Here's a snippet of the serializement (first step):
int ...
0
votes
0
answers
3k
views
How to write a client/server socket program in C to request a hostname IP address?
I am making a client/server socket program where the client can send a hostname request and the server returns the IP address of the hostname. I do not know what's wrong but my (get_IP) function seems ...
3
votes
1
answer
8k
views
Communicating between two different computers with TCP/IP
I've been studying how to use sockets to make two java programs communicate.
Now, on each example I've gone through, they've always placed the "server side program" on the same computer on which the "...
0
votes
1
answer
145
views
Hosting a java server program to listen at a port
I want to test an application written in Java socket programming. I have a client machine which has a dynamic ip. I want to connect to a server program in the server and send some data. What I did ...
0
votes
3
answers
1k
views
Socket Connection on Java, specify IP
I'm working on a program where multiple clients need to interact with a remote server.
I've tested it locally and everything's ok (sort of, more on that later), but I can't understand how to set a ...
0
votes
1
answer
7k
views
java.net.ConnectException: failed to connect to /192.168.10.110 connect failed: ECONNREFUSED (Connection refused
First problem:
I am doing messaging using socket programming.Previously it worked fine but currently it is showing exception when I connect both server and client to same router .
Second ...
6
votes
2
answers
20k
views
Java Client Socket Connection in Android [duplicate]
I am creating a client socket connection between my computer and android.
Here is the code for the server:
import java.io.PrintWriter;
import java.net.InetAddress;
import java.net.ServerSocket;
...
0
votes
1
answer
299
views
Python - Change the socket address of existing .exe application
How do I with python change the port and address information of a client .exe application?
So instead of programming your own client where you assign it initially, you change the ip information of an ...
1
vote
2
answers
3k
views
Java Socket on Different Machine Does Not Work
I've tried many examples on web and one of them is this:
http://zerioh.tripod.com/ressources/sockets.html
All of the server-client socket examples work fine when they are tested with 127.0.0.1
BUT ...
0
votes
1
answer
998
views
Client does not connect to server over internet
I've set up a simple client/server system, but for some reason the client won't connect via the internet. I've got them communicating on the same machine, using both the localhost address (127.0.0.1) ...
0
votes
2
answers
2k
views
Client-Server app for Android/Java using dynamic IP
So i want to create an Android application that would send data (in this case coordinates) from my Android device to a Java application on my MacBook via Wi-Fi.
I figured i would use TCP Sockets for ...
4
votes
1
answer
6k
views
Find IP of program trying to connect to ServerSocket
Although I searched about it I couldn't find an answer.
Let's say I have the following Java code:
ServerSocket serve = null;
try {
server = new ServerSocket(5567);
} catch (...