From 4542f589ad3ccbc0faa48c5602684a0d80ddeb44 Mon Sep 17 00:00:00 2001 From: tushargoyal-hack1 <56203660+tushargoyal-hack1@users.noreply.github.com> Date: Sun, 6 Oct 2019 00:43:39 +0530 Subject: [PATCH] binding of ip and port --- sender.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sender.py b/sender.py index d3fdf48..deab47e 100644 --- a/sender.py +++ b/sender.py @@ -1,5 +1,5 @@ #!/usr/bin/python2 - +import os import socket sender_ip="192.168.10.177" myport=9999 @@ -8,8 +8,9 @@ # for tcp dgram hatake stream in caps # below ,ethod wth argument creating a soket called s s=socket.socket(socket.AF_INET,socket.SOCK_DGRAM) - +# making object of socket for ip and port bind # now conenctng ip and port - +print("Ip and port will be binded") s.bind((sender_ip,myport)) +