File transfer program using c#.net Windows application

Client-Side Code:

using System;
using System.Collections.Generic;
using System.Text;
using System.Net;
using System.Net.Sockets;
using System.IO;
namespace Client_Socket
{
class File_Transfer
{
static void Main(string[] args)
{
try
{
  Console.WriteLine("This program can transfer small file.");
  IPAddress[] ipAddress = Dns.GetHostAddresses("localhost");
  IPEndPoint ipEnd = new IPEndPoint(ipAddress[0], 5656);
  Socket clientSock = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.IP);
  string fileName = "Your File Name";
  string filePath = "Your File Path";
  byte[] fileNameByte = Encoding.ASCII.GetBytes(fileName);
  byte[] fileData = File.ReadAllBytes(filePath + fileName);
  byte[] clientData = new byte[4 + fileNameByte.Length + fileData.Length];
  byte[] fileNameLen = BitConverter.GetBytes(fileNameByte.Length);
  fileNameLen.CopyTo(clientData, 0);
  fileNameByte.CopyTo(clientData, 4);
  fileData.CopyTo(clientData, 4 + fileNameByte.Length);
  clientSock.Connect(ipEnd);clientSock.Send(clientData);
  Console.WriteLine("File:{0} has been sent.", fileName);
  clientSock.Close();
  Console.ReadLine();
}
catch (Exception ex)
{
Console.WriteLine("File Sending fail." + ex.Message);
}
}
}
}

Server-Side Code:

using System;
using System.Collections.Generic;
using System.Text;
using System.Net;
using System.Net.Sockets;
using System.IO;
namespace beginSocketServer
{
class File_Transfer
{
static void Main(string[] args)
{
try
{
  Console.WriteLine("This program can transfer small file.");
  IPEndPoint ipEnd = new IPEndPoint(IPAddress.Any, 5656);
  Socket sock = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.IP);
  sock.Bind(ipEnd);
  sock.Listen(100);
  Socket clientSock = sock.Accept();
  byte[] clientData = new byte[1024 * 5000];
  string receivedPath = "e:/";
  int receivedBytesLen = clientSock.Receive(clientData);
  int fileNameLen = BitConverter.ToInt32(clientData, 0);
  string fileName = Encoding.ASCII.GetString(clientData, 4, fileNameLen);
  Console.WriteLine("Client:{0} connected & File {1} started received.", clientSock.RemoteEndPoint, fileName);
  BinaryWriter bWrite = new BinaryWriter(File.Open(receivedPath + fileName, FileMode.Append)); ;
  bWrite.Write(clientData, 4 + fileNameLen, receivedBytesLen - 4 - fileNameLen);
  Console.WriteLine("File: {0} received & saved at path: {1}", fileName, receivedPath);
  bWrite.Close();
  clientSock.Close();
  Console.ReadLine();
}
catch (Exception ex)
{
Console.WriteLine("File Receiving fail." + ex.Message);
}
}
}
}