Maybe pretty basic question, but I can't find a basic example or explanation.
I want to make a connection to 192.168.0.10 with port nr 35000
When I have a connection, I want to post AT commands and/or create a socket stream.
How do I code this in iOS? I have seen an example with NSPort, but I can't find it anymore :(
Objective is to create a connection and keep it open through several views. And also post different commands to retreive data and display it on the different views.
Hope someone can point me in the right direction.
Kind regards,
Robert
Related
So I have a VPS (Cent Os 7) and using openvpn I created VPN having an address of 10.0.8.1 now on my front end I connected to VPN using openvpn after connecting I get access to websocket on 10.0.8.1 but its not secure I want access to wss on the same address. I have also tried using a secure domain name to connect but it still fails I can only connect it with either http or ws and not with https or wss
This is very trivial as far as a question but all in all, without telling you how to perform anything in details - the question is WWAAAYYY too broad to even consider answering without unevitably creating more questions than solving a problem or helping you.
You need to add cryptography to your websocket server, same as a web server is able to run in HTTPS mode rather than unencrypted. I'm sure you can see the similarity between both abreviations of the respective protocols and how they are different from their original, unencrypted/vulnerable default configuration.
http -> https
ws -> wss
Start reading on adding a SSL certificate to your websocket server config and then you will have a WSS connection - if all goes well of course!
I believe in you
p.s. - this is not the type of question that is very well received by the majority of the community. It is too broad to be of any interrest to anyone.A complete, well-built, comprehensive answer isn't something that fits within the boudaries of most community members as there is WAY too many variables and unknowns here. Anything will most likely create more questions (of this quality) than help you or anyone else. You lack basic knowledge in order to construct a question that doesn't sound anything other than 'i need a full tutorial'. Community doesn't provide tutorials, custom solutions or anything that resssembles a full product/service. We rather help solve smaller, more precise and clear issues that pop up day to day in the field. Generally, when someone "talks the talk", it implies that the bases are covered and an issue arose. For now, you must learn to "walk the walk" i suppose.
Everyone wore the same shoes at some point or another and good memory comes from remembering such stuff from when we started playing with the wall socket angry pixies!
Cheers!
Is there a way to review the Digital Input/Digital Output LED light history of a Siemens S7-1200 PLC?
If so, is it through the web portal or through Simatic and can someone point me in the direction of where to find such information?
Thanks - will save me a site visit if possible in any way.
There is no built in DI/DQ history for the S7-1200.
However, if you have some form of TCP/IP connection, this can be done quite easily.
When you call outputs in your main program, use a tag based calling system. Reference that tag, and have the tag's output be:
The required DQ
A TCP/IP message saying that this tag has risen or fallen.
For inputs, just send a message on the rise and fall of each input
It is likely easiest to hold this DI/DQ history on the server that is hosting this TCP/IP connection rather than the PLC itself.
i need a little help regarding NS-2
My question is can you implement a particular message format between two nodes in NS-2 like we create a tcp communication but if i want to send particular message eg
a certificate with information inside it such as public key or type of node time, etc.
i am trying to do it in wireless
and also can it be encrypted.
is there any example or sample code or snippet you can share
Creation of your own packets in aodv is so easy. Have a look at it.
http://karthicksivakrr.blogspot.in/2014/02/how-can-i-create-my-own-packets-in-aodv.html
So, I have read that it is possible to trace the IP of a Facebook friend while talking to him on chat by using Fiddler and Firebug. Now, as far as I am know, Facebook uses HTTPS and all in all, I cannot seem to get anything precise from Fiddler.
May anyone be kind enough to explain if this is really possible and if so, how the process goes?
I dont have a direct answer to your question, but i can give you some guidelines:
If the chat is working as a peer-to-peer network (which i highly doubt) you can trace the incoming tcp/udp connection and search it for the message using a sniffing program (like wireshark) and from there fetch their IP.
If the chat is based on that every message goes through a server (which is probably based on SOMM. not that it matters. (Server Oriented Messaging Model)). now if it is that way there is virtually no way to figure out the IP because the servers are acting as a proxy and masking the original IP, however. if FB includes some sort of meta data (which they do for location for phones etc.) that might contain the sender IP and some other stuff like the mac address etc etc. now i'm not sure of that but its a good place to look.
If you want help with firebug and all those other html/http/browser development tools there are plenty of tutorials out there. If you already know how to use it you might want to check the resources that's loaded when a message is sent. From experience i can tell that when a comment is added to something a whole bunch of crap happens that append stuff to the current html document. but i have never ever seen some meta data through that. anyway it's a good place to start.
Recently on some of our sites the bandwidth being used has risen tenfold and we want to know what is using it. All we have so far is the MRTG graphs that just say 'you used X much at this time'.
I would like to break down this information by service (ftp, http etc), direction (inbound or outbound), source and destination address and when.
To this end I have started logging all the packets through iptables. This seems to give me what I want at a very detailed level. Is there some tool that will take that log file and condense the information in some way.
Ideally it would provide information like:
1.1.1.1 send 123 bytes to 2.2.2.2 via http at 2011-02-24T10:03:17
Any ideas as to how I might achieve this or at least some pointers to making sense of the iptables log format.
A good tool for network analysis is Ethereal
Not sure if it will give you what you want exactly, but it will tell you what's going on with your network.
http://www.ethereal.com/