So, guys, in this video, we're going to build the Ports Canada, that scan number of ports, which
we given as an input and this is the before previous court, I have told in the banner a banner GARAVAGLIA,
which is very simple, called We are going to connect to this and we are sending the message and building
on this.
So now let's build this call and that support number one, two, three, four zero.
And that is not open in this server.
I don't think so.
One, two, three, four.
So now let us run this program and check whether the port is open or not.
If the port is open, we will get somewhere.
The port is close.
We don't know.
Let's see this one.
So it's this connection, refuser, no connection could be made because Target Machine actually refused.
So this is an error.
So if you got this error, it means that the spot is closed, right?
If you've got any other burner, this port is that port is open.
So this is the basis for port scanner.
So now what they're going to do is we're going to ask the user input for ports.
What is equal to input of.
We are going to ask the user for entering of ports like.
One 2000.
So no user will enter like.
One 2000, let's take the same AZAPO.
So we need to take this one and Towser and we can do both this one and that, and we will check for
every time whether the port is open or not.
So let's take this one and from the spring to say.
Starting.
Start to come out and let's say this one starts and is equal to we need to.
There is a matter in history that is pretty.
And and we need to specify on what character basis I need to speak to.
So this is a whole string.
And if you spread the string on the basis of this hyphen, we'll get two elements because the left one
is so the left part will be one part and right part will be one part of the business.
So just let me let me comment on this soccer program.
Let me show you what it will be like.
So I'm going to say this, according to this hyphen and the first part one goes to the start and then
goes to end.
So let me put into this word.
So that's one thousand miles again.
You got that one and.
So these are the strings we need to convert them into the numbers and statistics
in Towcester.
And equal to.
So we got this one number and number as a number, so let me come to this comment.
So now we can look for the start and end, uh, and we can just specify this, whether the port is open
or not so I can say is far ahead in a range of
start.
Come our end and press one, because this is exclusive, right?
That's what I'm going to say.
And and so it would also include the phone number and I put the corn and I'm going to, uh, press the
tab to good intonation so that the strength comes out of this forum so far for I in range of.
So for I in range of one and a thousand, we are going to create the socket each and every time and
we are connecting to this port.
So instead of one, two, three, four, I can say I at the first iteration, the socket will be created
and connect to this port, number one, and it will cross.
And again, in the second iteration, we're going to put an end to the tradition, we will connect to
the third for an extra 2000.
So now we have connected the state.
We have written this statement.
What if there is any error?
That means previously we have seen one, two, three, four, but has been closer and we got the connection,
refusal.
So to avoid that, we can just say we can catch that error and we can just continue that program further.
We need to say, all right, so please just, uh, we are going to try some color.
If there is any exception, we can, uh, write another piece of code that will handle that exception.
So what we want to do is we want to start this and put that out and don't either, except for the color
I can say pass or I can just print print that saying that, uh, for number four, I, i is closer because
we got any errors.
The actually this letter came in this time block in these three statements, then the code, the program
that jumps from this point to this point.
So I can say the board is Crozet not format of.
Format of a soda pop, if you're going to want to three, four, then it will be like one, two, three,
four is closer.
Now we can set up three.
Oh, I closed my eyes open, sorry for my eyes open that format format of.
So this is the code for this spot cannot.
And, uh, I think that's all for this, uh, Korkor.
I think it works.
So let me go ahead and run this one first.
We are going to create the circuit and we are connecting to this whole number of words.
And if we are granted, we will print this statement and we close the circuit if there is any connection
of disparate treatment is going to be executed.
So in order to run this one.
So need to enter the range of what's one 2000?
So 420 scrolls, photos, scrolls and pottery scrolls.
So I think our, uh, what kind is working?
So the phone number 21 is open, right?
So we need to wait up to 21 to test whether my script is working correctly or not.
Let's just wait and see.
So 21, 22, 23, 24.
So these are open.
So you can see what pontoon is open, 22 is open, completely open, 24 is open.
So let me first stop this one so we don't need.
So there are so many closable, so no need to print everything across the water.
Let me comment on this one and we can pass.
So now let me run this program.
Not we will not get all of the reports that you want to.
I think that's enough.
Does it take so much time?
You can also implement multitracking in this button to make these sports getting ready faster.
So as you can see, you got the door open to the door open and an expert will be telling you so it takes
much time.
So let's just wait and see whether we get, uh, 53 already.
So you started digging already so much.
You can also implement this market really to create so many threats.
I knew you didn't.
We can check and put our spots at a time within one segment, so it makes podcasting much faster.
All right, that's all for this year.
I'm going to stop now.
It's taken so much time.
So that's all for this year.
I hope you have understood this concept.
We just ask the user input to specify the range of posts and we are retreating or are the words not
creating the socket and we are connecting to it.
Whether there is any connection with this because of the across the board, we are just passing.
We are just printing nothing else if we can successfully.
That means the pot is open.
We are building the properties of.