Wifi Shield

Good evening, i have connected an arduino uno with wifi shield.How can i found out the address and port that my arduino is connected to.Please help me.I also want to know the remoteport that my arduino is configured to listen on.

I have this code

//Include the necessary libraries.
#include <SPI.h>
#include <WiFi.h>
#include <WiFiUdp.h>

//Wifi Variables
int status = WL_IDLE_STATUS;
char ssid = “YOURSSID”; // your network SSID (name)
char pass = “YOURPASSWORD”; // your network password (use for WPA, or use as key for WEP)
int keyIndex = 0; // your network key Index number (needed only for WEP)

unsigned int localPort = 2390; // local port to listen on

char packetBuffer[255]; //buffer to hold incoming packet

WiFiUDP Udp;

What i wrote in localport field?How to find out the local port that my arduino is connected to?Please help me.

Can anyone help me?