Unable to run application on photon Server

Options
I have an empty gameobject to which ive attached the following script.I get the following error
"Connect() to '192.168.1.101' failed: System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it."
The photon server version is 3.


using UnityEngine;

public class Connect :Photon.PunBehaviour{
bool isConnecting;
// Use this for initialization
void Start () {
Debug.Log("Start");
connect();

}
private void Awake()
{
PhotonNetwork.autoJoinLobby = true;
}


public void connect()
{
isConnecting = true;
Debug.Log("Connected");
if (PhotonNetwork.connected)
{
Debug.Log("Connected to photon network");
PhotonNetwork.JoinRandomRoom();
}
else
{
PhotonNetwork.ConnectUsingSettings("1.1"); //game is networked and conncted to photon cloud
}
}

public override void OnJoinedRoom()
{ Debug.Log("We are in Room for 1");
PhotonNetwork.LoadLevel("Room for 1");

}
}

Comments