sockets

Socket C# - Local Ip works, but Internet IP do not work

Guys, i implemented a Socket with Client and Server side. When I use my local IP (192.168...) it works. But when I put the Internet IP, it doesn't work! What's the main causes for that please? Thank you ...

Sending Images over C++ Sockets (Linux)

I am trying to send files over sockets. I created a program and it works for file types such as .cpp, .txt, and other text files. But binary files, images( .jpg, .png) and compressed files such as .zip and .rar are not being sent properly. I know it is not something to do with the size of the files because i tested with large .txt files....

authenticate throw squid proxy (PHP socket)

hello, I'd like to create a program which could authenticate throw Squid proxy. I'm using socket in PHP langage ...

How to open socket thru proxy server in .Net C#?

How to open socket thru proxy server in .Net C#? So I opened up a socket on my machin. there are no nats between pe and proxy server. I connected to proxy server. How now to make Requests from global IP world that know that proxy server adrress be redirected or transfered by proxy server to me? Any libs blog articles? Please help ...

microsoft NLB infrastructure - duplicating messages

Hi we have an NLB installation and application which binds to both NLB and other ip. It happened under load condition that both sockets receive information which was sent to NLB address. Has anyone encountered such condition. ...

Sending binary data over IPC from C to Python

Hi All I have a C program and a Python program on the same machine. The C program generates some data in nested structures. What form of IPC is the best way to get this data across to the python program? Serializing in C (especially nested structures) is a real bear, from what I hear, due to lack of serialization libraries. I am not...

linux sockets: server exits before client

Hello, I have this prog, just a skeleton for a simple sever and client connection. I will make it a chat. (dont mind the thread func and signals..) server: #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <errno.h> #include <time.h> #include <string.h> #include <signal.h> #include <sys/types.h> #include <sys/socket....

How do I disconnect a Bluetooth device?

I have a device actively connected to the computer via Bluetooth. From my C#.NET application I wish to disconnect the device so that the computer is no longer connected to the device. How would I go about doing this? I'm guess it would have something to do with finding the appropriate Socket and disconnecting that socket? (But this is ...

How to Disconnect Socket in C#, Boolean variable ReuseSocket. What is the purpose

What is the purpose of using ReuseSocket to true. I dont know what it do if i set this property to true. What happens if i set ReuseSocket to true or flase. I am trying to create a socket but it is giving me error again nd again. Error A request to send or receive data was disallowed because the socket is not connected and (when sendin...

netstat command on a server (winform application)

Hello, I'm looking for how to recorgnize some server (windows in my case) network configuration (information we obtain using netstat dos command). I have the login and password of the target (server), and I developp with visual studio 2005 (c# or vB.NET doesn't matter). (Can I use WMI for that ???) Regards, ...

Socket Connection Example for iphone

Hi, I would like to know some sample code to make socket connection from iPhone app and send some date to the lisining port. Thanks, Manish Bahal ...

Is there a way I can see which tcp ports are opening and what data is getting transferred?

I have many tcp ports are established on my system and I am not sure what is doing what. I have seen it using: netstat -an | find /i "established" but how can i found what data is getting transferred on these ports. I am fairly experienced in vb.net and can use tcplistener etc. I just need a right direction and first of all need to kn...

Good BitTorrent libraries in .NET?

Hi all, I'm looking to write an application that uses the BitTorrent protocol to do some file distribution. Said application will be written in C#. Ideally I'm hoping not to have to implement the protocol if someone else has already done it and written it into a library. Has anyone got any ideas? Thanks in advance! ...

How can I keep the kernel from sending RST packets from raw sockets on mac os x?

I am using raw sockets with TCP. Whenever a packet gets sent to me, my computer send a RST packet back. I tried http://udi.posterous.com/suppressing-tcp-rst-on-raw-sockets, which isn't working: int main(void) { struct addrinfo *info, hints, *p; int status, sock; memset(&hints, 0, sizeof(hints)); hints.ai_family = AF_UNSPEC; h...

TCPServer socket in ruby

hi, I would like to establish a connection between 2 computers using socket. For this purpose one of them is a server and this is the code I've write: sock= TCPServer.open('localhost', 6666) sock.accept the client try to establish the connection: client = TCPSocket.open(ip_server, 6666) but is not working. I've notice scanning serv...

Connect Windows Mobile to client PC over WIFI

What would be the best way to transfer a string across a network from a windows mobile device(so .net) to a .net app running on a pc on the same wifi network? Would normal sockets work or would i use something like a webrequest? The client can be any version of .net. Thanks ...

Select() + UDP resulting in too many open files

I currently have a select() statement configured to keep track of two UDP sockers. I send perhaps 10 - 20 messages a second at one general data socket, which is this interpreted as I expected. However, once I hit around 1024 messages, I get the notice: talker: socket: Too many open files talker: failed to bind socket This is lo...

flex4 socket problem

Hi, I'm trying to communicate my flash application with my server. Either the problem is my code is working on Flash Professional, but I have prepared all my interface on Flash Builder which uses Flex 4 -SDK. My code does not work on Flex Project. The problem is not security file. I can not solve the problem. What are the possible re...

How to get an IP address from Socket

I am trying to get an ip address that is bound to receiveSock. How can i get it. Ques 1: ipEndReceive = new IPEndPoint(IPAddress.Any, receivePort); receiveSock = new Socket(AddressFamily.InterNetwork , SocketType.Stream, ProtocolType.Tcp); receiveSock.Bind(ipEndReceive); When code reaches Bind function. An er...

How to get an ip address from an IPEndPoint obtained in a socket.

ipEndReceive = new IPEndPoint(IPAddress.Parse("127.0.0.1"), receivePort); receiveSock = new Socket(AddressFamily.InterNetwork, SocketType.Stream , ProtocolType.Tcp); ErrorLog.WritetoErrorlog("Trying to Bind IP Address Stored in Variable : " +ipEndReceive.Address.ToString() ...