client-server

Determining the IP address of a connected client on the server

我的梦境 提交于 2019-12-21 20:15:32
问题 I have a server running on one machine and have the port it uses forwarded to my router, and another machine running the client connecting to the server using my ISP assigned external IP address instead of the local address. This all works fine and it connects but When I check the address of the connected socket (client), The IP address that it shows is completely different? it shows me 148.49.68.0 . I can't find this on ipconfig and don't understand where this is popping up from. Shouldn't

Determining the IP address of a connected client on the server

纵饮孤独 提交于 2019-12-21 20:14:31
问题 I have a server running on one machine and have the port it uses forwarded to my router, and another machine running the client connecting to the server using my ISP assigned external IP address instead of the local address. This all works fine and it connects but When I check the address of the connected socket (client), The IP address that it shows is completely different? it shows me 148.49.68.0 . I can't find this on ipconfig and don't understand where this is popping up from. Shouldn't

Send File From Python Server to Java Client

点点圈 提交于 2019-12-21 06:48:11
问题 I am trying to send files from a Python server to Java client over a TCP socket. Here is what I have so far: Java Client (Note that all of the file transfer code is in the getFile() method): public class Client1 { private Socket socket = null; private FileOutputStream fos = null; private DataInputStream din = null; private PrintStream pout = null; private Scanner scan = null; public Client1(InetAddress address, int port) throws IOException { System.out.println("Initializing Client"); socket =

What is the recommended method of testing a JSON client-server api?

拜拜、爱过 提交于 2019-12-21 05:54:05
问题 Edit #2: Does anyone have a good method of testing the "middle" of a client-server application where we can intercept requests and responses, fake the client or server as needed, and which provides self-documentation of the api? Cucumber might be a good solution in many cases, but it's not quite what I'm looking for. And this middle layer should be client/server implementation agnostic. (e.g., black-box). Our client-server model is a ruby-on-rails server with a Flex client, using a RESTish

Two way communicating server/client architecture?

北战南征 提交于 2019-12-21 05:15:08
问题 I'm trying to figure out which client/server technology (i.e. which part of the .NET Framework) to use for our new application. We will be writing the app in C# using .NET 3.5 SP1. It is going to consist of a central Service that will be running as a "server", and several client applications spread out on several machines. The client application is a trayapp application that is going to receive notifications from the server, and will also send some information back to the server. The

What is the best, most efficient, Client pool technique with Erlang

好久不见. 提交于 2019-12-21 04:42:23
问题 I'm a real Erlang newbie (started 1 week ago), and I'm trying to learn this language by creating a small but efficient chat server. (When I say efficient I mean I have 5 servers used to stress test this with hundreds of thousands connected client - A million would be great !) I have find some tutorials doing so, the only thing is, that every tutorial i found, are IRC like. If one user send a message, all user except sender will receive it. I would like to change that a bit, and use one-to-one

HTTP over AF_UNIX: HTTP connection to unix socket

时光总嘲笑我的痴心妄想 提交于 2019-12-21 03:20:09
问题 We have HTTP server , for which we have HTTP client based application (on Linux) working fine. But now we need to listen on Unix domain sockets from our client application. So is it possible to send/receive httprequest, httpresponse packet from the unix domain socket? Scenerio1:When connecting to localhost, it is required to eliminate the SSL overhead by connecting HTTP to the unix socket instead of HTTPS to the local port. Basically Looking for a standard encoding a unix socket path in an

Is it sensible to connect a desktop client directly to MySQL?

狂风中的少年 提交于 2019-12-21 01:17:15
问题 I'm writing a Java desktop client application that retrieves data from a remote MySQL server. For development purposes I have had it connecting directly to the MySQL server (i.e. with DriverManager.getConnection(databaseURL) etc.), but have been intending to move to using a web service (once that'd been built). My question is whether I couldn't just continue with the direct connection? What is the web service going to give me other than more code to write? I would have to implement my own

Git repository setup for a project that has a server and client

一世执手 提交于 2019-12-20 18:48:10
问题 I am part of a project that is starting up that will have a client executable and a server executable. We are using git to help keep our team updated with code and this is the first time for many of us using git (This project is for a class). I am starting to setup the git repository for my project to use but I am not sure what would be the best design for having client and server code. So onto the question, how should the repository be setup? There will not be a lot of code sharing between

SOA vs Client-Server vs Web Service - what is the difference? [closed]

自闭症网瘾萝莉.ら 提交于 2019-12-20 10:06:06
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 5 years ago . After reading some literature on the topics of SOA, Web-Services and Client-Server architectute. I really confused about these terms because can't see the real difference between them. Can someone explain what the actual difference between SOA and Client-Server is? Can I use