Deye Posted August 30, 2017 Posted August 30, 2017 Hi, 1. Scenario 1: client's (listening script) connects to server (listening script) which is on a private network Q. Will the server script see the client connections with IPs like (192.168.x.x) Does (192.168.x.x) vary for the different connections (multiple users) ? Since I'm only testing this locally .., I would like some opinions on what to expect and what are known\preferable ways to deal with such connections Thanks
TheDcoder Posted August 30, 2017 Posted August 30, 2017 Yes, you will see private connections as 192.168.x.x. Every computer in the local private network will have a unique 192.168.x.x address Deye 1 EasyCodeIt - A cross-platform AutoIt implementation - Fund the development! (GitHub will double your donations for a limited time) DcodingTheWeb Forum - Follow for updates and Join for discussion
Deye Posted August 30, 2017 Author Posted August 30, 2017 Thanks a. What about external connections from the internet out of the local network ? do I get external IPs for clients ? b. What happens when a client (script) first connects to the server (script) with one socket then on the same time the client executes a browser link that contains an http "GET" to the server will that keep 2 sockets open between the client and server ? 1 for the browser and one for conversing in messages ?
TheDcoder Posted August 30, 2017 Posted August 30, 2017 1 minute ago, Deye said: do I get external IPs for clients ? Yes, the IPs for external clients will be out of the private IP range 3 minutes ago, Deye said: b. What happens when a client (script) first connects to the server (script) with one socket then on the same time the client executes a browser link that contains an http "GET" to the server will that keep 2 sockets open between the client and server ? 1 for the browser and one for conversing in messages ? Not sure what you mean... the client executing a browser link or doing anything else will not effect the socket. The socket for the "GET" request is different and does not interfere with the other socket. Deye 1 EasyCodeIt - A cross-platform AutoIt implementation - Fund the development! (GitHub will double your donations for a limited time) DcodingTheWeb Forum - Follow for updates and Join for discussion
Deye Posted August 30, 2017 Author Posted August 30, 2017 Good, will only need to log connections into an array to be able to link connections with sockets
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now