<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Matheus Bratfisch &#187; servidor</title>
	<atom:link href="http://www.matbra.com/tag/servidor/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.matbra.com</link>
	<description>&#34;Cogito ergo sum&#34;</description>
	<lastBuildDate>Tue, 20 Dec 2011 00:03:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Send files using XML-RPC in Java</title>
		<link>http://www.matbra.com/en/2009/09/17/enviar-arquivos-via-xml-rpc-em-java/</link>
		<comments>http://www.matbra.com/en/2009/09/17/enviar-arquivos-via-xml-rpc-em-java/#comments</comments>
		<pubDate>Thu, 17 Sep 2009 22:23:04 +0000</pubDate>
		<dc:creator>Matheus (X-warrior) Bratfisch</dc:creator>
				<category><![CDATA[Aprendendo]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[cliente]]></category>
		<category><![CDATA[servidor]]></category>
		<category><![CDATA[xmlrpc]]></category>

		<guid isPermaLink="false">http://www.matbra.com/?p=496</guid>
		<description><![CDATA[Hello Tooday Jorge send me an e-mail asking how to send files using XML-RPC. So I did some modifications in Client and Server, Java XML-RPC to do this. I implemented this and it wasn&#8217;t so hard. I read the documentation of Apache XML-RPC to see how to send bytes. They are send using an array [...]]]></description>
			<content:encoded><![CDATA[<p>Hello</p>
<p>Tooday Jorge send me an e-mail asking how to send files using XML-RPC. So I did some modifications in <a href="http://www.matbra.com/en/2009/05/16/cliente-e-servidor-java-xml-rpc/">Client and Server, Java XML-RPC</a> to do this. </p>
<p>I implemented this and it wasn&#8217;t so hard. I read the documentation of <a href="http://ws.apache.org/xmlrpc/types.html" target="_blank">Apache XML-RPC</a> to see how to send bytes. They are send using an array of bytes (byte[]) in a Base64 codification. </p>
<p>To create the Base64 codification I used <a href="http://iharder.net/current/java/base64/" target="_blank">Java Base64 in public domain</a>.</p>
<p><a href="http://www.java-tips.org/java-se-tips/java.io/reading-a-file-into-a-byte-array.html" target="_blank">How to get an array of bytes from a file</a></p>
<p><a href="http://www.velocityreviews.com/forums/t388750-write-byte-to-file.html" target="_blank">How to create a file from a array of bytes</a></p>
<p><a href='http://www.matbra.com/2009/09/17/enviar-arquivos-via-xml-rpc-em-java/xml-rpc-transferencia-de-arquivo/' rel='attachment wp-att-497'>XML-RPC-Transfer-file</a></p>
<p>Matheus</p>
<p>PS: This is just an example, any file that client ask, the server will send. It WILL BE A SYSTEM VULNERABILITY!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.matbra.com/en/2009/09/17/enviar-arquivos-via-xml-rpc-em-java/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Share internet in a SERVER connected to WAN port.</title>
		<link>http://www.matbra.com/en/2009/05/26/compartilhar-internet-com-servidor-na-porta-wan/</link>
		<comments>http://www.matbra.com/en/2009/05/26/compartilhar-internet-com-servidor-na-porta-wan/#comments</comments>
		<pubDate>Tue, 26 May 2009 21:01:41 +0000</pubDate>
		<dc:creator>Matheus (X-warrior) Bratfisch</dc:creator>
				<category><![CDATA[Aprendendo]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[compartilhar]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[lan]]></category>
		<category><![CDATA[modem]]></category>
		<category><![CDATA[roteador]]></category>
		<category><![CDATA[servidor]]></category>
		<category><![CDATA[wan]]></category>

		<guid isPermaLink="false">http://www.matbra.com/?p=278</guid>
		<description><![CDATA[Hello, The last days I keep trying to configure my server. I know how to configure the network to this: MODEM -> (eth0) Servidor (eth1) -> (LAN Port) Router (LAN Ports) -> Computers This topology don`t work for me, because in this way I lost one WAN Port. So I thought in this topology: MODEM [...]]]></description>
			<content:encoded><![CDATA[<p>Hello,</p>
<p>The last days I keep trying to configure my server. I know how to configure the network to this: </p>
<blockquote><p>MODEM -> (eth0) Servidor (eth1) -> (LAN Port) Router (LAN Ports) -> Computers</p></blockquote>
<p>This topology don`t work for me, because in this way I lost one WAN Port. So I thought in this topology:</p>
<blockquote><p>MODEM -> (eth0) Servidor (eth1) -> (Porta WAN) Router (Portas LAN) -> Computadores</blockqu</p>
<p>First of all configure your eth1 manyally as (edit /etc/network/interfaces):</p>
<blockquote><p>auto eth1<br />
iface eth1 inet static<br />
address 192.168.100.254<br />
netmask 255.255.255.0<br />
network 192.168.100.0<br />
broadcast 192.168.100.255</p></blockquote>
<p>After this I add this iptables rules:</p>
<blockquote><p>sysctl net.ipv4.ip_forward=1<br />
iptables -t nat -A POSTROUTING &#8211;out-interface eth0 -j MASQUERADE<br />
iptables -A FORWARD &#8211;in-interface eth0 -j ACCEPT</p></blockquote>
<p>I need to setup the router manually:</p>
<blockquote><p>IP Address : 192.168.100.1<br />
Subnet Mask : 255.255.255.0<br />
ISP Gateway Address : 192.168.100.254<br />
Primary DNS Address : 200.247.141.11 (DNS)<br />
Secondary DNS Address : 200.247.141.12 (DNS)</p></blockquote>
<p>So up and running</p>
<p>Matheus</p>
]]></content:encoded>
			<wfw:commentRss>http://www.matbra.com/en/2009/05/26/compartilhar-internet-com-servidor-na-porta-wan/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Client and Server, Java XML-RPC</title>
		<link>http://www.matbra.com/en/2009/05/16/cliente-e-servidor-java-xml-rpc/</link>
		<comments>http://www.matbra.com/en/2009/05/16/cliente-e-servidor-java-xml-rpc/#comments</comments>
		<pubDate>Sat, 16 May 2009 03:42:14 +0000</pubDate>
		<dc:creator>Matheus (X-warrior) Bratfisch</dc:creator>
				<category><![CDATA[Aprendendo]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[cliente]]></category>
		<category><![CDATA[servidor]]></category>
		<category><![CDATA[xmlrpc]]></category>

		<guid isPermaLink="false">http://www.matbra.com/?p=245</guid>
		<description><![CDATA[Good night, A few days ago I created a XML-RPC server to test some functions. What is XML-RPC? XML-RPC is a remote procedure call (RPC) protocol which uses XML to encode its calls and HTTP as a transport mechanism.(wikipedia) To start using XML-RPC in Java I used apache xml-rpc. Example client and server XML-RPC. Best [...]]]></description>
			<content:encoded><![CDATA[<p>Good night,</p>
<p>A few days ago I created a XML-RPC server to test some functions. What is XML-RPC? XML-RPC is a remote procedure call (RPC) protocol which uses XML to encode its calls and HTTP as a transport mechanism.(wikipedia) To start using XML-RPC in Java I used <a href="http://www.apache.org/dyn/closer.cgi/ws/xmlrpc/" target="_blank">apache xml-rpc</a>.</p>
<p><a href="http://www.matbra.com/?attachment_id=247">Example client and server XML-RPC</a>.</p>
<p>Best Regards,<br />
Matheus</p>
]]></content:encoded>
			<wfw:commentRss>http://www.matbra.com/en/2009/05/16/cliente-e-servidor-java-xml-rpc/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

