<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: How to Program UDP sockets in Python &#8211; Client and Server Code Example	</title>
	<atom:link href="https://www.binarytides.com/programming-udp-sockets-in-python/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.binarytides.com/programming-udp-sockets-in-python/</link>
	<description>News, Technology, Entertainment and more</description>
	<lastBuildDate>Fri, 22 Apr 2022 20:04:31 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.2</generator>
	<item>
		<title>
		By: Controlling drivers with data received via TCP/UDP &#8211; GrindSkills		</title>
		<link>https://www.binarytides.com/programming-udp-sockets-in-python/comment-page-1/#comment-335749</link>

		<dc:creator><![CDATA[Controlling drivers with data received via TCP/UDP &#8211; GrindSkills]]></dc:creator>
		<pubDate>Fri, 22 Apr 2022 20:04:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/?p=3156#comment-335749</guid>

					<description><![CDATA[[&#8230;] http://www.binarytides.com/programming-udp-sockets-in-python/ [&#8230;]]]></description>
			<content:encoded><![CDATA[<p>[&#8230;] <a href="http://www.binarytides.com/programming-udp-sockets-in-python/" rel="ugc">http://www.binarytides.com/programming-udp-sockets-in-python/</a> [&#8230;]</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Deepak kiran		</title>
		<link>https://www.binarytides.com/programming-udp-sockets-in-python/comment-page-1/#comment-139889</link>

		<dc:creator><![CDATA[Deepak kiran]]></dc:creator>
		<pubDate>Thu, 09 Nov 2017 13:54:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/?p=3156#comment-139889</guid>

					<description><![CDATA[Great code. It works. Thanks It helped me a lot.]]></description>
			<content:encoded><![CDATA[<p>Great code. It works. Thanks It helped me a lot.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: deepak kiran		</title>
		<link>https://www.binarytides.com/programming-udp-sockets-in-python/comment-page-1/#comment-139888</link>

		<dc:creator><![CDATA[deepak kiran]]></dc:creator>
		<pubDate>Thu, 09 Nov 2017 13:53:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/?p=3156#comment-139888</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.binarytides.com/programming-udp-sockets-in-python/comment-page-1/#comment-65755&quot;&gt;Master_uv_Puppetz&lt;/a&gt;.

It works for python 3.x after you change the print and using encode() and decode() on the strings]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.binarytides.com/programming-udp-sockets-in-python/comment-page-1/#comment-65755">Master_uv_Puppetz</a>.</p>
<p>It works for python 3.x after you change the print and using encode() and decode() on the strings</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: varma		</title>
		<link>https://www.binarytides.com/programming-udp-sockets-in-python/comment-page-1/#comment-137260</link>

		<dc:creator><![CDATA[varma]]></dc:creator>
		<pubDate>Wed, 25 Oct 2017 16:03:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/?p=3156#comment-137260</guid>

					<description><![CDATA[could some one can help me in writing UDP proxy in python which can do man in the middle between two ethernet ports]]></description>
			<content:encoded><![CDATA[<p>could some one can help me in writing UDP proxy in python which can do man in the middle between two ethernet ports</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Viru		</title>
		<link>https://www.binarytides.com/programming-udp-sockets-in-python/comment-page-1/#comment-122613</link>

		<dc:creator><![CDATA[Viru]]></dc:creator>
		<pubDate>Fri, 30 Jun 2017 00:20:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/?p=3156#comment-122613</guid>

					<description><![CDATA[Thank you!

That clears my lot of doubts :)]]></description>
			<content:encoded><![CDATA[<p>Thank you!</p>
<p>That clears my lot of doubts :)</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: nit		</title>
		<link>https://www.binarytides.com/programming-udp-sockets-in-python/comment-page-1/#comment-113309</link>

		<dc:creator><![CDATA[nit]]></dc:creator>
		<pubDate>Sat, 01 Apr 2017 08:17:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/?p=3156#comment-113309</guid>

					<description><![CDATA[hi,
in udp server
i have 2 clients c1 and c2
when i send from msg from c1 to c2
c2 msg is send to him
but the msg is published to c1 itself what can be done
plz help]]></description>
			<content:encoded><![CDATA[<p>hi,<br />
in udp server<br />
i have 2 clients c1 and c2<br />
when i send from msg from c1 to c2<br />
c2 msg is send to him<br />
but the msg is published to c1 itself what can be done<br />
plz help</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: psoikjuhdguf3ihojpk-j0ohrigu3vbijk[f		</title>
		<link>https://www.binarytides.com/programming-udp-sockets-in-python/comment-page-1/#comment-112511</link>

		<dc:creator><![CDATA[psoikjuhdguf3ihojpk-j0ohrigu3vbijk[f]]></dc:creator>
		<pubDate>Tue, 28 Mar 2017 04:27:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/?p=3156#comment-112511</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.binarytides.com/programming-udp-sockets-in-python/comment-page-1/#comment-66283&quot;&gt;Chaythanya Nair&lt;/a&gt;.

Hey change localhost to the ip address for example
host = &#039;localhost&#039;;
to host = &#039;192.168.4.33&#039;; this being the ip address]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.binarytides.com/programming-udp-sockets-in-python/comment-page-1/#comment-66283">Chaythanya Nair</a>.</p>
<p>Hey change localhost to the ip address for example<br />
host = &#8216;localhost&#8217;;<br />
to host = &#8216;192.168.4.33&#8217;; this being the ip address</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Ethan		</title>
		<link>https://www.binarytides.com/programming-udp-sockets-in-python/comment-page-1/#comment-111565</link>

		<dc:creator><![CDATA[Ethan]]></dc:creator>
		<pubDate>Tue, 21 Mar 2017 17:34:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/?p=3156#comment-111565</guid>

					<description><![CDATA[Thank you for the basic, quick sample!]]></description>
			<content:encoded><![CDATA[<p>Thank you for the basic, quick sample!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: ayush		</title>
		<link>https://www.binarytides.com/programming-udp-sockets-in-python/comment-page-1/#comment-67963</link>

		<dc:creator><![CDATA[ayush]]></dc:creator>
		<pubDate>Mon, 08 Jun 2015 13:29:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/?p=3156#comment-67963</guid>

					<description><![CDATA[hey can you correct my code sir...??
 its about 350 lines big......a client side program
but with very few errors of sockets only]]></description>
			<content:encoded><![CDATA[<p>hey can you correct my code sir&#8230;??<br />
 its about 350 lines big&#8230;&#8230;a client side program<br />
but with very few errors of sockets only</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Thái Nguyên Huy		</title>
		<link>https://www.binarytides.com/programming-udp-sockets-in-python/comment-page-1/#comment-67911</link>

		<dc:creator><![CDATA[Thái Nguyên Huy]]></dc:creator>
		<pubDate>Sat, 11 Apr 2015 07:29:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/?p=3156#comment-67911</guid>

					<description><![CDATA[how can i broadcast the message to all clients when they are connected to this server ???]]></description>
			<content:encoded><![CDATA[<p>how can i broadcast the message to all clients when they are connected to this server ???</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Axxxel		</title>
		<link>https://www.binarytides.com/programming-udp-sockets-in-python/comment-page-1/#comment-67804</link>

		<dc:creator><![CDATA[Axxxel]]></dc:creator>
		<pubDate>Tue, 10 Feb 2015 23:43:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/?p=3156#comment-67804</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.binarytides.com/programming-udp-sockets-in-python/comment-page-1/#comment-66043&quot;&gt;George&lt;/a&gt;.

Both protocols, Telnet and SSH work on TCP.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.binarytides.com/programming-udp-sockets-in-python/comment-page-1/#comment-66043">George</a>.</p>
<p>Both protocols, Telnet and SSH work on TCP.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Chaythanya Nair		</title>
		<link>https://www.binarytides.com/programming-udp-sockets-in-python/comment-page-1/#comment-66283</link>

		<dc:creator><![CDATA[Chaythanya Nair]]></dc:creator>
		<pubDate>Thu, 26 Jun 2014 12:05:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/?p=3156#comment-66283</guid>

					<description><![CDATA[hey.. nice tutorial but this doesnt work for a client and server running in two different systems shared over a wifi. should we change the protocol for doing the same?]]></description>
			<content:encoded><![CDATA[<p>hey.. nice tutorial but this doesnt work for a client and server running in two different systems shared over a wifi. should we change the protocol for doing the same?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: George		</title>
		<link>https://www.binarytides.com/programming-udp-sockets-in-python/comment-page-1/#comment-66043</link>

		<dc:creator><![CDATA[George]]></dc:creator>
		<pubDate>Tue, 25 Mar 2014 10:25:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/?p=3156#comment-66043</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.binarytides.com/programming-udp-sockets-in-python/comment-page-1/#comment-65717&quot;&gt;Silverfox&lt;/a&gt;.

I&#039;m getting the same error here, any advice?]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.binarytides.com/programming-udp-sockets-in-python/comment-page-1/#comment-65717">Silverfox</a>.</p>
<p>I&#8217;m getting the same error here, any advice?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Master_uv_Puppetz		</title>
		<link>https://www.binarytides.com/programming-udp-sockets-in-python/comment-page-1/#comment-65755</link>

		<dc:creator><![CDATA[Master_uv_Puppetz]]></dc:creator>
		<pubDate>Sun, 13 Oct 2013 13:31:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/?p=3156#comment-65755</guid>

					<description><![CDATA[Great article :)
Would your code run for python 3.x (after normal changes like print())???]]></description>
			<content:encoded><![CDATA[<p>Great article :)<br />
Would your code run for python 3.x (after normal changes like print())???</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Silverfox		</title>
		<link>https://www.binarytides.com/programming-udp-sockets-in-python/comment-page-1/#comment-65717</link>

		<dc:creator><![CDATA[Silverfox]]></dc:creator>
		<pubDate>Wed, 18 Sep 2013 15:20:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/?p=3156#comment-65717</guid>

					<description><![CDATA[I am running your first simple block of code at the top of this tutorial in the python IDE, I also tried it through a terminal, both on win7. The code runs fine, but when I try to connect via telnet, ncat or putty, I get the following:


On windows telnet I get this error: &#039;Could not open connection to the host, on port (tried lots), connect failed...&#039;
with ncat I get: &#039; An existing connection was forcibly closed by the remote host. .&#039;

and with putty I get: &#039;Network error: connection refused&#039;
I&#039;m confused...


Also, I went through your tcp socket tutorial, and that all worked correctly. Any help much appreciated.]]></description>
			<content:encoded><![CDATA[<p>I am running your first simple block of code at the top of this tutorial in the python IDE, I also tried it through a terminal, both on win7. The code runs fine, but when I try to connect via telnet, ncat or putty, I get the following:</p>
<p>On windows telnet I get this error: &#8216;Could not open connection to the host, on port (tried lots), connect failed&#8230;&#8217;<br />
with ncat I get: &#8216; An existing connection was forcibly closed by the remote host. .&#8217;</p>
<p>and with putty I get: &#8216;Network error: connection refused&#8217;<br />
I&#8217;m confused&#8230;</p>
<p>Also, I went through your tcp socket tutorial, and that all worked correctly. Any help much appreciated.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Nhân		</title>
		<link>https://www.binarytides.com/programming-udp-sockets-in-python/comment-page-1/#comment-65502</link>

		<dc:creator><![CDATA[Nhân]]></dc:creator>
		<pubDate>Thu, 30 May 2013 17:08:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/?p=3156#comment-65502</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.binarytides.com/programming-udp-sockets-in-python/comment-page-1/#comment-65501&quot;&gt;Silver Moon&lt;/a&gt;.

Thank a lot!!! It works !! 

You&#039;re a good one!!! Thank again!!!]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.binarytides.com/programming-udp-sockets-in-python/comment-page-1/#comment-65501">Silver Moon</a>.</p>
<p>Thank a lot!!! It works !! </p>
<p>You&#8217;re a good one!!! Thank again!!!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Silver Moon		</title>
		<link>https://www.binarytides.com/programming-udp-sockets-in-python/comment-page-1/#comment-65501</link>

		<dc:creator><![CDATA[Silver Moon]]></dc:creator>
		<pubDate>Thu, 30 May 2013 16:53:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/?p=3156#comment-65501</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.binarytides.com/programming-udp-sockets-in-python/comment-page-1/#comment-65500&quot;&gt;Nhân&lt;/a&gt;.

the last print statement should be


print (&#039;Message[&#039; + addr[0] + &#039;:&#039; + str(addr[1]) + &#039;] - &#039; + data.strip().decode(&quot;utf-8&quot;))]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.binarytides.com/programming-udp-sockets-in-python/comment-page-1/#comment-65500">Nhân</a>.</p>
<p>the last print statement should be</p>
<p>print (&#8216;Message[&#8216; + addr[0] + &#8216;:&#8217; + str(addr[1]) + &#8216;] &#8211; &#8216; + data.strip().decode(&#8220;utf-8&#8221;))</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Nhân		</title>
		<link>https://www.binarytides.com/programming-udp-sockets-in-python/comment-page-1/#comment-65500</link>

		<dc:creator><![CDATA[Nhân]]></dc:creator>
		<pubDate>Thu, 30 May 2013 16:46:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/?p=3156#comment-65500</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.binarytides.com/programming-udp-sockets-in-python/comment-page-1/#comment-65499&quot;&gt;Silver Moon&lt;/a&gt;.

it works!!! :) 

But in this Server has other problem@@ I&#039;m so sorry, because i&#039;m a newbie

Created on 30-05-2013

@author: ASPIRE 5755G
&#039;&#039;&#039;
&#039;&#039;&#039;
    Simple udp socket server
    Silver Moon (m00n.silv3r@gmail.com)
&#039;&#039;&#039;
 
import socket
import sys
 
HOST = &#039;&#039;   # Symbolic name meaning all available interfaces
PORT = 8888 # Arbitrary non-privileged port
 
# Datagram (udp) socket
try :
    s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
    print (&#039;Socket created&#039;)
except socket.error as msg :
    print (&#039;Failed to create socket. Error Code : &#039; + str(msg[0]) + &#039; Message &#039; + msg[1])
    sys.exit()
 
 
# Bind socket to local host and port
try:
    s.bind((HOST, PORT))
except socket.error as msg:
    print (&#039;Bind failed. Error Code : &#039; + str(msg[0]) + &#039; Message &#039; + msg[1])
    sys.exit()
     
print (&#039;Socket bind complete&#039;)
 
#now keep talking with the client
while 1:
    # receive data from client (data, addr)
    d = s.recvfrom(1024)
    data = d[0]
    addr = d[1]
     
    if not data: 
        break
     
    reply = &#039;OK...&#039; + data.decode(&quot;utf-8&quot;)
     
    s.sendto(reply.encode(&quot;utf-8&quot;) , addr)
    print (&#039;Message[&#039; + addr[0] + &#039;:&#039; + str(addr[1]) + &#039;] - &#039; + data.strip())
     
s.close()]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.binarytides.com/programming-udp-sockets-in-python/comment-page-1/#comment-65499">Silver Moon</a>.</p>
<p>it works!!! :) </p>
<p>But in this Server has other problem@@ I&#8217;m so sorry, because i&#8217;m a newbie</p>
<p>Created on 30-05-2013</p>
<p>@author: ASPIRE 5755G<br />
&#8221;&#8217;<br />
&#8221;&#8217;<br />
    Simple udp socket server<br />
    Silver Moon (m00n.silv3r@gmail.com)<br />
&#8221;&#8217;</p>
<p>import socket<br />
import sys</p>
<p>HOST = &#8221;   # Symbolic name meaning all available interfaces<br />
PORT = 8888 # Arbitrary non-privileged port</p>
<p># Datagram (udp) socket<br />
try :<br />
    s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)<br />
    print (&#8216;Socket created&#8217;)<br />
except socket.error as msg :<br />
    print (&#8216;Failed to create socket. Error Code : &#8216; + str(msg[0]) + &#8216; Message &#8216; + msg[1])<br />
    sys.exit()</p>
<p># Bind socket to local host and port<br />
try:<br />
    s.bind((HOST, PORT))<br />
except socket.error as msg:<br />
    print (&#8216;Bind failed. Error Code : &#8216; + str(msg[0]) + &#8216; Message &#8216; + msg[1])<br />
    sys.exit()</p>
<p>print (&#8216;Socket bind complete&#8217;)</p>
<p>#now keep talking with the client<br />
while 1:<br />
    # receive data from client (data, addr)<br />
    d = s.recvfrom(1024)<br />
    data = d[0]<br />
    addr = d[1]</p>
<p>    if not data:<br />
        break</p>
<p>    reply = &#8216;OK&#8230;&#8217; + data.decode(&#8220;utf-8&#8221;)</p>
<p>    s.sendto(reply.encode(&#8220;utf-8&#8221;) , addr)<br />
    print (&#8216;Message[&#8216; + addr[0] + &#8216;:&#8217; + str(addr[1]) + &#8216;] &#8211; &#8216; + data.strip())</p>
<p>s.close()</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Silver Moon		</title>
		<link>https://www.binarytides.com/programming-udp-sockets-in-python/comment-page-1/#comment-65499</link>

		<dc:creator><![CDATA[Silver Moon]]></dc:creator>
		<pubDate>Thu, 30 May 2013 15:49:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/?p=3156#comment-65499</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.binarytides.com/programming-udp-sockets-in-python/comment-page-1/#comment-65498&quot;&gt;Nhân&lt;/a&gt;.

this should work

https://gist.github.com/silv3rm00n/5678933]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.binarytides.com/programming-udp-sockets-in-python/comment-page-1/#comment-65498">Nhân</a>.</p>
<p>this should work</p>
<p><a href="https://gist.github.com/silv3rm00n/5678933" rel="nofollow ugc">https://gist.github.com/silv3rm00n/5678933</a></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Nhân		</title>
		<link>https://www.binarytides.com/programming-udp-sockets-in-python/comment-page-1/#comment-65498</link>

		<dc:creator><![CDATA[Nhân]]></dc:creator>
		<pubDate>Thu, 30 May 2013 15:28:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/?p=3156#comment-65498</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.binarytides.com/programming-udp-sockets-in-python/comment-page-1/#comment-65494&quot;&gt;Silver Moon&lt;/a&gt;.

I change it :

import socket   #for sockets
import sys  #for exit
 
# create dgram udp socket
try:
    s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
except socket.error:
    print (&#039;Failed to create socket&#039;)
    sys.exit()
 
host = &#039;localhost&#039;;
port = 8888;
 
while(1) :
    msg = input(&#039;Enter message to send : &#039;)
    try :
        #Set the whole string
        s.sendto((msg, (host, port)))
         
        # receive data from client (data, addr)
        d = s.recvfrom(1024)
        reply = d[0]
        addr = d[1]
         
        print (&#039;Server reply : &#039; + reply)
     
    except (socket.error, msg):
        print (&#039;Error Code : &#039; + str(msg[0]) + &#039; Message &#039; + msg[1])
        sys.exit()

is that true?? but it doesn&#039;t work @Silver Moon]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.binarytides.com/programming-udp-sockets-in-python/comment-page-1/#comment-65494">Silver Moon</a>.</p>
<p>I change it :</p>
<p>import socket   #for sockets<br />
import sys  #for exit</p>
<p># create dgram udp socket<br />
try:<br />
    s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)<br />
except socket.error:<br />
    print (&#8216;Failed to create socket&#8217;)<br />
    sys.exit()</p>
<p>host = &#8216;localhost&#8217;;<br />
port = 8888;</p>
<p>while(1) :<br />
    msg = input(&#8216;Enter message to send : &#8216;)<br />
    try :<br />
        #Set the whole string<br />
        s.sendto((msg, (host, port)))</p>
<p>        # receive data from client (data, addr)<br />
        d = s.recvfrom(1024)<br />
        reply = d[0]<br />
        addr = d[1]</p>
<p>        print (&#8216;Server reply : &#8216; + reply)</p>
<p>    except (socket.error, msg):<br />
        print (&#8216;Error Code : &#8216; + str(msg[0]) + &#8216; Message &#8216; + msg[1])<br />
        sys.exit()</p>
<p>is that true?? but it doesn&#8217;t work @Silver Moon</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
