networking

Access data from one system to antother system

Hi, i'm accessing a file from one system to another system using IP address bcoz those systems are in local network. I used this way "http://192.168.0.155:8080/files/index.jsp".but i want access the following way "http://nets:8080/files" like this way. how to possible to access the data this way? ...

Is there a way to detect an "almost" Remote Desktop disconnect (i.e., a brief period of high latency)?

I work for a trading company where our users interact with the primary trading application via a Remote Desktop connection to a server that's physically located within the exchange's facilities. A feature of our software is that it disconnects and pulls all quotes automatically if something goes wrong with the network and the RD session...

Using serial over lan with python

Hi, I'd like to write a python script to gather data from serial over lan but I can't seem to find a place to start with IPMI. I've looked at OpenIPMI's python bindings but there doesn't seem to be any documentation. Perhaps I can use the subprocess module and ipmitool? I'm not sure that would be simple though. Does anyone have any e...

How to handle Timeouts in Ruby with TCPSocket networking

I want to be able to return quickly from a networking call that times out (having seen that my code can hang forever if the network is down, or similar) My code looks like: s = TCPSocket.open(hostname,port) s.puts msg ret = s.recv(1024) s.close I'm pretty confused at the documentation for TCPSocket, for example, doesn't even MENTION ...

Ruby Net::IMAP: closing a connection

Ruby Net::IMAP library provides a good API for IMAP stuff (http://railsapi.com/doc/ruby-v1.8/classes/Net/IMAP.html). There are two methods related to closing the IMAP connection: logout() and disconnect(). In which turn are they supposed to be called? ...

Java <-> Python localhost stream, Java does not continue

Problem Summary I've got an application which combines both Java and Python, the two languages communicating across a localhost socket. (I cannot use Jython, I can't throw out Java for PyGame, and I can't throw out Python for pure Java.) The application opens the socket between Python and Java and a socket from Java to a central server...

Web server on port 80 on iPhone.

Hello, I've been working on a project for awhile and it's got a built-in HTTP server which runs on port 8080. The users are told to access the device via e.g. http://192.168.1.4:8080/ -- works great. Recently I realized that applications CAN use port 80 to remove the need for ":8080", though if I try to set the port to 80 I get a crash ...

C++ boost/asio client doesn't connect to server.

I am learning boost/asio ad wrote 2 programs(client and server) from e-book with minor changes. Basically it should connect to my server. When i try to connect to outside world(some random http server ) all is good and it works but when i change destination to "localhost:40002" it says invalid argument. client code: #include <boost/asi...

Virtualizing an Inline network appliance with VirtualBox (or VMWare)

My device, which is a Linux based IP in-liner is transparent to the network peripherals, that is, no IP address assigned to any of its interfaces. For the sake of the conversation, let's use ADSL connection as an example, while the device is inspecting the bi-directional traffic, the network is behaving same as if device was not there,...

How can I specify the client's data port for a ftp server in active mode?

I use python ftplib to connect to a ftp server which is running on active mode; That means the server will connect my client machine on a random port when data is sent between us. Considering security issue, Can I specify the client's data port (or port range) and let the server connect the certain port? Many Thanks for your response....

Live monitoring of network connectivity status

Hi! A new client has recently asked me to develop a Windows service that will monitor whether or not his server has internet connectivity. The service should log when the connection goes down to Local Only and back up to Internet Access as shown in Network and Sharing Center. My original idea was to have the service ping a website like...

Attacking synchronized clock protocol (Kerberos)

If we assume that an attacker is able to control the clock of Alice, Bob, and the KDC (key distribution center) how could the attacker attack the Kerberos protocol? ...

detecting server crash during long-polling http request

I have a Java client that uses HttpClient to connect to a server and wait a response. The response may return after a long time (the client essentially waits for an event from the server). Other than using timeouts, is there a way to detect when the server crashes? ...

Simple iphone networking in different threads

I guess my question stems from ignorance on how network communication is done on different threads on the iOS platform. I have a TcpConnection class which is a wrapper for input and output streams to a printer. the Open call looks like this: CFStreamCreatePairWithSocketToHost(kCFAllocatorDefault, (CFStringRef) ipAddress, port, &read...

How to set the same time on both computers connected over network in .NET?

Hi, I'm trying to be fair play in my network game and I would like to mark as winner the player who won first and it depends on time but DateTime.Now is local time and both computers may have set different times on their machines. Is there something that .NET provides for this case? Thanks! ...

Guest as proxy for Host in virtual machines

In the latest version of VirtualBox with a Windows 7 64-bit host and a Windows 7 64-bit guest, is it possible to set the guest as a proxy for the host? Specifically, I want to initiate a VPN connection over HTTPS with the guest--which is a copy of a machine on an NT domain--and use that connection from the host (which is not part of the...

How we can Download a HTML Page using JAVA??

How we can Download a HTML Page using JAVA?? ...

How can Malroy impersonate Alice in the Wide Mouth Frog protocol?

How can Malroy impersonate Alice in the Wide Mouth Frog protocol? Notation: A: Alice B: Bob S: Trusted server Ta: Timestamp A Ts: Timestamp S Kab: Session key between A and B Kas: Session key between A and S Kbs: Session key between B and S Protocol: step 1: A->S:A,{Ta,Kab,B}Kas step 2: S->B:{Ts,Kab,A}Kbs ...

Why does the Kerberos protocol not feature perfect forward secrecy?

Why does the Kerberos protocol not feature perfect forward secrecy? ...

How to gracefully shutdown socket in C#

I have a TCP client/server application. 1) server is listening on a port 2) client send request and server accept the connection 3) send receive operation performed 4) server tries to disconnect the connection (first Shutdown then Close) 5) connection state changed to TIME_WAIT 6) the next time client open another socket but sending do...