Hi All,
I am seeing weird behavior on Linux where I am seeing that remote end and local end are both showing same IP and port combination. Following is the netstat output
netstat -anp | grep 6102
tcp 0 0 139.185.44.123:61020 0.0.0.0:* LISTEN 3361/a.out
tcp 0 0 139.185.44.123:61021 ...
I'm trying to send messages (byte arrays) from Node.js to Java via TCP socket (serialized with protobuf).
I create a server socket on the java side, and connect to it from Node:
var client = net.craeteConnection(12345, "localhost")
client.addListener("connect", function(){
client.write(serializedMsg1)
client.end(serializedMsg...
Hi
I am trying to connect 2 or more computers running a c# application. All TCP examples I find only show how to connect them if they are running on the same network.
My question is how to connect them over the internet?
I want to create a service like MSN but with direct connection (like a torrent software does),
any help?
regar...
I implement NTLM SSO, it works well, but when I want to switch to use login form, IE doesn't work:
1.SSO into my website
2.clear session and redirect to login page
3.key in username and password
4.submit
and because the login i have bypass the SSO filter, so it works well in Firefox browser.
But in IE, it still send a request with ntlmss...
Is it possible to specify explicitly local port that should be used by net.Stream, or to find out what local port is used for connection?
According to the documentation, local port cannot be specified:
stream.connect(port, host='127.0.0.1')
...
I'm using AsyncSocket to write a TCP client on iPhone and need to set the Urgent Flag of TCP segments.
How to do it? I can't find relative APIs in CFSocket.
Thanks.
...
Hi,
When an application such as a web server sends HTTP data to a web browser, how does the browser know when it has received all of the data so that it can begin using it instead of waiting for more? TCP doesn't specify anywhere how large a segmented message is going to be.
Right now I'm thinking that it's up to the application layer...
I have in my C++ application a failure that arose upon porting to 32 bit FreeBSD 8.1 from 32 bit Linux. I have a TCP socket connection which fails to connect. In the call to connect(), I got an error result with errno == EINVAL which the man page for connect() does not cover.
What does this error mean, which argument is invalid? The m...
Hi all,
A week or so ago someone on StackOverflow asked why their Python code for connecting to an IPv6 link-local address wasn't working, and I replied that since it was a link-local address they needed to add a %en0 (or whatever the desired local-interface-name is) suffix to their target IP address. I thought I knew what I was talkin...
Hi guys,
I would like to have some advices because I've got conflict between clients sending RTSP messages to the server.
First at all I apologize to you all for my English.
Well, what I'm doing is a java streaming video application.
clients set TCP connection with the server for exchanging RTSP messages
server sends over UDP, to t...
I am trying to create a TCP connection from an embedded controller to a Windows Vista server. I am writing the Windows server part of the application.
When the controller attempts to connect, it can take many attempts to establish the connection. I have used Wireshark to debug the problem and it appears that the Windows TCP stack is not...
When sending data using UDP, a destination port is needed to be specified.
If sending by TCP, a source port should also be specified.
Are there different ports for input and output? E.g., if I specify port 1234, can I use it for both input and output or should I use different ports for output and input?
EDIT:
To clarify my question:
-...
In the code below I have a StreamReader reading from a network stream. This code normally will run fine for days. I ran into a problem where all of a sudden StreamReader.ReadLine() started returning null.
According to Microsoft documentation StreamReader.ReadLine() will return null when it has reached the end of the input stream. This d...
Hi
I am using a non blocking socket .But while sending messages I am gettng EAGAIN error occasionally.
Can you please tell me what are the situation we may get EGAIN error .As I have set the buffer size also with good amount of value .And i am just sending 18 messages of 20 bytes.So I dont think its giving EGAIN because of buffer full.A...
Hi,
I have web application that runs on Tomcat (and gets HTTP requests) and some other backend standalone application that gets only TCP. For some reasons, I can use outside only port 8080. So, I need to get all TCP requests (from outside) to port 8080 and forward HTTP ones to web application on Tomcat and all TCP pure requests (that ar...
Hello all,
I want to implement TCP protocol using Java. I've read Sun documentation and examples but all of them simply open a socket, client waits for server to accept the connection and then sends data.
I wonder how I can implement the three way handshake and data validation using Java? How do server and client exchange sequence nu...
Hi,
I'm having trouble figuring this out - I'm working with sockets in C using this guide - http://binarii.com/files/papers/c_sockets.txt
I'm trying to automatically get my ip and port using:
server.sin_port = 0; /* bind() will choose a random port*/
server.sin_addr.s_addr = INADDR_ANY; /* puts server's IP automatically ...
Is it possible to use the Unix netcat (nc) program to create a TCP proxy server and monitor? I would like all TCP traffic to be passed across the pipe, as well as sent to stdout for monitoring. Note this will be used for monitoring HTTP traffic between a hardware device and an HTTP server.
...
I have a socket server that listens to connection on port 5001, when a connection is accepted and data is received i request my database to create a packet of data in a particular format and write it back to client.
To make the data transmission more reliable i have to implement a TCP retry in PHP, how do i go about this my current impl...
What is TCP response packets?
How to meet this requirement in access-list on a router?
...