tcpip

how to get a client's MAC address from HttpServlet?

Hi I was asked to write a servlet that collects client's details such as ip, mac address etc. getting his IP is pretty straight-forward (request.getRemoteAddr()) but I dont find an elegant way to get his MAC address. seems reasonable that the web server has access to data such as Mac address etc, since it gets the TCP packets and all....

Do I need to heartbeat to keep a TCP connection open?

I have two components that that communicate via TCP/IP. Component A acts as a server/listener and Component B is the client. The two should communicate as quickly as possible. There can only ever be one connection at any time (though that is aside to this question). A senior developer at my company has said I need to use application ...

Port Number

This is a small doubt and something that shouldn't really come to one's mind.So please forgive me for this In order to transmit messages between two host on lan, do the port numbers to send and receive data have to be the same? ...

How to determine total data upload+download in TCP/IP

Hi, I need to calculate total data transfer while transferring a fixed size data from client to server in TCP/IP. It includes connecting to the server, sending request,header, receiving response, receiving data etc. More precisely, how to get total data transfer while using POST and GET method? Is there any formula for that? Even a t...

Simple client/server, TCP/IP encrypting the message stream, SSL

Hi, Writing a little TCP/IP client server app. Basically it creates a server, and then you can create several different clients and set up a bit of a chat session. What I am wondering is there is any way to incorporate, using standard .net libraries some form of encryption? m_mainSocket = new Socket(AddressFamily.InterNetwork, ...

Delphi transparent proxy for a TCP connection

Anyone know of any examples of a TCP sockets proxy application written in Delphi? I am building a small broker application that needs to listen for socket connections on a given TCP port, read a XML data packet sent over the connection, serve the request via TCP to a server chosen from a pool of available back end servers, and deliver th...

Get a random, high port number that is still available.

Suppose I want to run a TCP/IP service on some port for IPC. As I'm passing the port number to the processes I want to communicate with anyway, the port number doesn't matter. What's the best way to get a random, high (usually >49152) port number that is still available from the system? Is there something in POSIX I can use? I know FTP ...

TCP/IP Window Socket//server (C++) and Client(java) ..not Working

Hi evrybody, iam doing some simulation and i have writting an application using java who communicate with a server writting in c\c++. The problem it is not working and i want to know if it's possible? I don't want to use Corba or something like that.. thanks for your Help. ...

Can I manipulate tomcats answer on request.getServerName() or request.getLocalAddr() by configuration in server.xml

and if so: How? I need this because the server is known under different IPs in different sub-networks. ...

TCP/IP failed to establish an outgoing connection

We're seeing TCP/IP warning and quite a few connection failures on our web and sql server (Win2k8 SP1 w/ IPv6 enabled) and it happens more often when the worker process/sql server process has been running for a couple of days continously. I am wondering what causes these warnings? What is the default number of tcp connections allowed and...

Berkley sockets shutdown function, how important?

Hello, as background I've got an embedded device that talks to a third party server over IP. The code in the third party server is unlikely to change. In a recent release I changed the ip disconnect function to call shutdown() before calling close() (previously it had just called close()). The embedded device disconnects without complet...

JBoss - ExportException: Port already in use: 1098

Hello, I'm getting the following error when I try to start JBoss 10:10:43,298 INFO [WebService] Using RMI server codebase: http://127.0.0.1:8083/ 10:10:43,938 ERROR [AbstractKernelController] Error installing to Start: name=jboss:service=Naming state=Create mode=Manual requiredState=Installed java.rmi.server.ExportException: Port alre...

Wrong DNS for just one site on development machine

www.superyoink.de is my clients' website. I can access it from any machine except my development one. If I ping it on my development machine, I get 80.67.28.107 - this is wrong. My laptop, next to me, is able to resolve it correctly. I have tried putting correct address into hosts like so: 93.187.232.191 www.superyoink.de Still r...

HP PCL via TCP/IP

Where can I find an example program in C to print to a network attached HP printer. ...

Enabling TCP/IP protocol through t-sql script?

How to enable tcp/ip through t-sql script on sql server 2008? ...

If I can ping my DB server, is my SQL Server connection guaranteed to work?

If I can ping my DB server, is my SQL Server connection guaranteed to work? I am using a default connection string in my code. My program runs fine locally but overseas sites are having issues and I am wondering if SQL might be using a TCP or UDP port that is still blocked. Here is the connection string "Data Source=xxxx.xxxx.com; Initi...

how to write a virtual com port to TCP driver?

Hi I am trying to write a windows virtual com port driver which will divert the data to a IP address. any pointers, best practice will be of help? ...

Tcpip listener sockets SSL streams so much confusion

I am trying to code up a tcpip server using .NET. Looking at the threads on this site the general consensus seems to be use some variation of the .NET 3.5 SocketArgs classes to be maximally scalable BUT I have to use SSL as well, and the only way to do that seems to be to use a tcplistener and then grab a tcpclient from the Begin\End Acc...

How can I read sections of a large remote file (via tcpip?)

A client has a system which reads large files (up to 1 GB) of multiple video images. Access is via an indexing file which "points" into the larger file. This works well on a LAN. Does anyone have any suggestions as to how I can access these files through the internet if they are held on a remote server. The key constraint is that we ...

Send Apple Event from Windows?

My son has a MacOS 9 box to which he is sending remote AppleEvents from his Leopard-based MacBook. Is there any way, programmatically, that I can send remote AppleEvents via TCP/IP from my Windows 7 Toshiba? ...