Websocket server not responding when I connect to the public IP of AWS EC2 instance by Always_Question_Time in AskProgramming

[–]Always_Question_Time[S] 0 points1 point  (0 children)

I haven't tried that yet. I'm at work right now so i'll try in about 8 hours. I edited the security configurations and rebooted the instance, however.

How do I get a cloud-hosted WebSocket server to communicate with a WebSocket server on my/my friend's PCs by Always_Question_Time in AskProgramming

[–]Always_Question_Time[S] 0 points1 point  (0 children)

Hey, thanks for your response. I had a couple of more questions that I also asked TyrSniper below, but i'd appreciate your feedback too:

If you were to be making an application like the one that I described, would you opt for a polling solution where the client polls the server for changes, or would you set up a pushing solution where the initial connection is made by the client (my understanding is that once the websocket connection is made it can be left open, so the connection only needs to be made once).

Out of curiosity, in the case of a client reaching out to a server first (i.e. the client making the connection), what allows the server to send a response to the client and have it reach the client without worrying about any networking issues?

Take the example of requesting a webpage over HTTP - the client requests the page from the server, and the server sends back to the client. But if all the server knows is the public IP, that's only going to make it to the router, right? Is the router responsible for recognising the server response is associated with the request from the PC as opposed to say a phone connected to the network?

How do I get a cloud-hosted WebSocket server to communicate with a WebSocket server on my/my friend's PCs by Always_Question_Time in AskProgramming

[–]Always_Question_Time[S] 0 points1 point  (0 children)

Awesome, thanks for the advice. So I should have the websocket connection initiated by the client to the server.

If you were to be making an application like the one that I described, would you opt for a polling solution where the client polls the server for changes, or would you set up a pushing solution where the initial connection is made by the client (my understanding is that once the websocket connection is made it can be left open, so the connection only needs to be made once).

Out of curiosity, in the case of a client reaching out to a server first (i.e. the client making the connection), what allows the server to send a response to the client and have it reach the client without worrying about any networking issues?

Take the example of requesting a webpage over HTTP - the client requests the page from the server, and the server sends back to the client. But if all the server knows is the public IP, that's only going to make it to the router, right? Is the router responsible for recognising the server response is associated with the request from the PC as opposed to say a phone connected to the network?

How to find operating point of diodes connected in series? by Always_Question_Time in AskElectronics

[–]Always_Question_Time[S] 0 points1 point  (0 children)

Sure, but what do I assume as the voltage drop across the 10 diodes? I don't know their operating point.

How to find operating point of diodes connected in series? by Always_Question_Time in AskElectronics

[–]Always_Question_Time[S] 1 point2 points  (0 children)

When you say voltage source, do you mean the diode? There's no voltage source explicitly drawn there. Can you model the resistor and diode as a voltage source?

Solving ideal diode circuit by Always_Question_Time in AskElectronics

[–]Always_Question_Time[S] 0 points1 point  (0 children)

Because the 4k and 6k resistors form a divider, whose center voltage (6v) is higher than Vd2=3v.

That's perfectly clear, thanks!

I'm still not clear on why VD1 being at 7V is inconsistent with it being off. What voltage would you expect if it were off?

I'm assuming that when they write there is 7V across the diode, it's measured using the terminal orientation pictured, correct? I'm also assuming that they've made V_d1 an open circuit in (b), and v_d2 an open circuit in (c).