Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I want to make my Raspberry Pi to run a server application in python so that, with my client application on my mac, I could send json requests to it so the Raspberry Pi would preform certain actions based on the json request. I want to know:
Which ports should I use? (I think my verizon FiOS router blocks certain ports
should I use raspian for this project?
How can I get a static IP for my pi?
For the 3rd problem you can use no-ip.com. This won't give you a static ip, but will map your dynamic one to a url.
Related
Closed. This question is not about programming or software development. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 days ago.
Improve this question
Let's say I run multiple Python scripts in one shell, each at the same time or using cron in the same hour, and let's assume each script makes a different HTTP request. Can the OS do the HTTP in an asynchronous way or the computer will wait until one request is finished to start another?
I tried this and apparently worked, but I want to know how.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 12 months ago.
Improve this question
I have a two socket scripts which I want to access from outside local network but None of these solution seem to work.Tried this Accessing python server (web server) using ngrok and this https://pyngrok.readthedocs.io/en/latest/integrations.html#python-tcp-server-and-client and this https://gist.github.com/Jc2k/61aeb5b551d006b17f97 didn't work for me.
Windows 7 python 3.8.8
Any other solution?
This solution may work it worked for me
https://youtu.be/HI1kbr6vBhQ
Just follow the screen as the voice is in another language.
First setup ngrok
Then ngrok tcp port-no
It will return 'forwarding' which will have a port number put it in your file
Then ping the thing it returned it will return the ip then put it in client file
That's all
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 12 months ago.
Improve this question
I connected one MLX90614 sensor to Raspberry Pi 3 (which communicate by i2c bus) according to videos on youtube. Everything was fine, it was working. But then a need connect the same MLX90614 sensor (i2c bus too). These sensors will be next to each other and they will be used for counting people in enclosed rooms. So, the first sensor will register people going into the rooms and the second sensor will register people going outside. Please, could you give me some advice, how to connect these sensors? For now, only one of them is working....Thank you.
Every MLX90614 has a default I2C address of 0x5A, but that address can be re-written -- one of the major features supported by the device. By reconfiguring the address of an MLX90614, you can add multiple devices (up to 127!) to the same bus to get a larger temperature map.
Please refer to here for details.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I used ip aliasing technique to assign multiple ips on single nic. I am using these ips in a python script to generate traffic. I am doing this for my college project. Can anyone tell me that how would I come to know that currently in my script which IP is used to generate traffic? I am using centos 6.5
You can get the local IP and port used for the socket by doing
>>> sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
>>> sock.connect(('8.8.8.8', 53))
>>> sock.getsockname()
('192.168.1.67', 36498)
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
Would like to know how proxy servers work (i.e. generally, how the mechanism works for the request process).
We're trying to understand how to set up a proxy server for our Web application. We need several processes to access the Internet through a proxy server in the internal network. Ideally, we could run custom Python code somewhere inside the proxy - especially before actually executing the request.
This is probably a really basic / dumb question, but now that I know that we should probably use a proxy, I am struggling to understand how they work and how we should incorporate them to our infrastructure.
Thanks very much! Any information on this will be very appreciated!