# MagicJack/Support Resources/How-To/Proxy Find2

Following is background information on the servers the MagicJack softphone connects to, how to identify the specific regional server you are connected to, and how to identify all available regional servers.
After obtaining this information, you can use it to change your proxy to a different region.

## Background

MagicJack connects to a few servers which fall into two basic categories:

### SIP and RTP servers

These are the main servers used by Magicjack.
* SIP protocol connections go to a "proxy" server.
** This connection occurs when you start MagicJack. It carries control information. For example, when a call occurs, the SIP connection carries the information instructing the softphone to open a RTP (vms) connection.
** The UDP ports this connection uses are commonly referred to as 5060 and/or 5070. But, MagicJack only seems to open a connection to 5070.
* RTP protocol connections go to a "vms" server.
** This connection occurs when you place or receive a call. It carries the voice traffic.
** This connection is always to a UDP port in the range of 10000 to 30000 on the RTP/vms server.
These servers exist across the US. Their locations seem to correlate to YMAX POP locations. MagicJack area codes seem to be associated with particular regional servers. But, MagicJack will connect to a different region's if it is unable to connect to the regional server it is normally associated with.
It seems that the RTP/vms server used by MagicJack is always in the same region as the SIP/proxy server. Therefore, if you know your SIP/proxy server you can safely assume your RTP/vms server. (Ex. If your SIP server is proxy1.phoenix.talk4free.com, then your RTP server should be vms1.phoenix.talk4free.com.).

### Administrative servers

MagicJack connects to the following servers for administrative purposes:
* prov1.talk4free.com - Provisioning (TCP ports 80 & 443)
* 911.talk4free.com - Enhanced 911 (TCP port 80)
* upgrade.talk4free.com - Upgrades (TCP port 80)
* render.talk4free.com - Advertisements (TCP port 80)
* mls.softjoys.com - Decryption of stored parameters? (TCP port 5002)
The above hostnames may resolve to the same IP address, and/or multiple IP addresses. Use nslookup to check this.

## Identify your proxy

You can identify which proxy you are connected to using the following method:
Windows

### Preparation

* Download pmdump from http://www.ntsecurity.nu/toolbox/pmdump/.
* Start MagicJack
* Identify MagicJack's process ID (PID).
** Open a DOS (command) window.
** Execute pmdump -list
** Find "magicjack.exe" in the output. Note the number associated with it.
* Make at least one call. (Ex. to the special echo-test number: 909-390-0003.).

### Final steps

* Using the DOS (command) window and PID as described above, execute: pmdump {pid} mj_dump.txt
* Open mj_dump.txt using a text editor like textpad.
* Search for the string: s=ENSResip
That string occurs at the start of a line. And it occurs within repeating blocks of data, like a repeating pattern. In these blocks you will find lines starting with o= and c=. These lines contain the IP address of the SIP/proxy and RTP/vms servers respectively.
For example, if you connect to the Phoenix proxy, you should see:
You can use nslookup to resolve both IP addresses to hostnames, revealing the regional SIP/proxy and RTP/vms servers you are presently using.
Keep in mind that the server you connect to may change from time to time. Ex. If MagicJack is unable to connect to a regional server, it will try a different region. This feature is what allows you to force MagicJack to connect to a different regional server.

## Alternative Method to Identify Proxy Used by magicJack
### Preparation

* Download and install WireShark from http://www.wireshark.org/
* Run WireShark to watch all the packets in and out of your computer on the interface you use to connect to your router.
* Start magicJack if its not running. Or if it is running, just make a call.
* Watch WireShark -you should see SIP connections being made. The IP address of the SIP connections should match one of the proxies listed below.
* Alternatively, use nslookup in a DOS (command prompt) box to lookup the name of the machine whose IP address you've identified.

## Identify all available proxies

Using the same steps described above in Identify your proxy, search the memory dump for: transport=udp. This will reveal a list of IP addresses of regional SIP/proxy servers. These addresses can be converted to hostnames using nslookup. The resulting hostnames should correspond to the list of YMAX POP locations.
Note: As of Jan. 28, many of these IP addresses cannot be resolved by nslookup. Please use the list below to cross reference an IP address to a proxy server.
Using that list of proxy IP addresses, you can force MagicJack to connect to a specific regional server.
The following list of regional proxy servers is provided for comparison only. This information changes over time. For example, over the past six months (since the creation of this how-to), the IP addresses of the Atlanta, Los Angeles, Miami and New York proxy servers changed. The following list may be updated from time to time. However, you should always obtain the current list of proxy IP addresses using the procedure described earlier in this section.
67.91.177.79-?
* ↑ It appears the softphone is now opening ports above 20000. On January 23, 2009 it was noticed that this changed from port range 10000-20000 to 10000-30000.