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 am running Ubuntu on my machine and want to write some sniffer scripts. But I am getting packets related to my NIC only even if I run my Interface in promisc mode. Is there any IPTABLE rules that i need to put on so that i can get entrie packets on the network??
Please help.
I am using python for everything i am doing , if it helps
In a modern switched network, you system is in general only going to see two kinds of traffic: unicast traffic explicitly directed to your system and broadcast traffic that is visible to all systems. Nothing you can do in your code will make other traffic on the network visible to you. Enabling promiscuous mode on your interfaces in this situation is going to net you very little additional traffic.
This is less true in a network with a shared bus -- such as WifI, or back in the old days when we used hubs instead of switches.
Netfilter -- the Linux firewall you manipulate with the iptables command -- really only operates on the layer 3 (ip) level, and isn't going to affect what traffic is visible to your interface.
Related
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 1 year ago.
Improve this question
I want to connect to my MySQL database, it works locally on my computer but when I want to connect it to my website it doesn't work obviously because it's only local. How do I run my database globally so that my website can access it? If there's any helpful link you can send, please do.
If you want to run a database from your PC you would need to configure your router to have a static external IP address. You would most likely need to talk to your ISP to arrange this, and once in place you would need to update your routers firewall to only allow appropriate traffic into your network.
Although possible, I wouldn't recommend it. It would be far better to get a £5pm droplet from a cloud provider as it will be a lot more reliable, not to mention cheaper!
If you spend a little more you can get a managed database instance in the cloud.
Once you have decided where to run your database, you can update mysqld.conf to configure your bind_address. This is the address that MySQL will listen on, and by default will only listen locally. You can change it to your external IP, or to 0.0.0.0 to listen on all interfaces.
You are going to have to move it to a cloud provider. It will be reliable as well which is a plus. Rather than going through your own router, and setting something up with your ISP.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I've search a little bit on net about urllib library in python 2.7, due to my friend's tip and because I've already used for a while. Well, what I really wanna know is about indications. Supposing I desire to create a application that is going to be used in a specific device that communicates with another device with same application, e.g A message application, or even a virtual simple game (using only the network), what are the possible libraries I can use? If some of you've already used anything to build a similar application, please, I'll appreciate your knowledge.
It sounds like you want to develop an application specific protocol which is different than HTTP.
HTTP is carried over TCP and Python connects to TCP transports with the standard socket module. There is a small overview of the use of sockets in the Python standard documentation.
The most important part of your new protocol is ensuring each side knows when the other side has sent a complete message. This can be very simple (each message ends with a newline) to as complex as you need.
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.
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 am considering purchasing an imac with the thought of dual-purposing the machine. I'd like to use it as a home computer, but also host a personal website or two using OSX Server.
By using my computer as a server, is there any way that a malicious attack through my website can allow someone access to files that are stored locally on my hard drive? Is it safer to simply use a dedicated machine or service?
NB: I hope that a question regarding website security is appropriate, sorry that this isn't explicitly a coding question.
Yes of course it's absolutely possible. Depending on the services you are running, you will always be adding more potential holes for an attacker to find.
Yes plus it won't save you much time / money. Proper hosting isn't that expensive. What about the DNS, you're going to point to your own Internet Connection IP address, can you guarantee it won't change or stop working at any time?
Is it safer to simply use a dedicated machine or service?
Go with a service that handles everything for you unless you enjoy system admin stuffs.