Having trouble changing proxy server
Moderators: Bill Smith, Pilot
Having trouble changing proxy server
For a week or so now, incoming voice quality has been bad (sounds like a highly compressed mp3) so I decided to follow the instructions here
to change the proxy server it normally connects to.
Everything went OK until I tried to execute the route command. I used their suggested one:
(route add 66.104.81.70 mask 255.255.255.255 192.168.1.2) but substituted the local talk4free IP.
It produces an error: "the route addition failed: Either the interface index is wrong or the gateway does not lie on the same network as the interface. Check the IP Address Table for the machine."
Anyone know how to get this to work? The instructions at the above link could certainly be expanded.
to change the proxy server it normally connects to.
Everything went OK until I tried to execute the route command. I used their suggested one:
(route add 66.104.81.70 mask 255.255.255.255 192.168.1.2) but substituted the local talk4free IP.
It produces an error: "the route addition failed: Either the interface index is wrong or the gateway does not lie on the same network as the interface. Check the IP Address Table for the machine."
Anyone know how to get this to work? The instructions at the above link could certainly be expanded.
Your MJ is set for one server all the time. Are you sure yours is set for the Phoenix proxy server. Also do you have a router? Some people also have to use a real destination within their LAN meaning they have to redirect to another computer, printer or anything else with it's own address on your LAN. I'm able to use a fake ip address on my LAN others are not. Search for changing proxy servers and there are some great threads about this topic. You may need to go back awhile in the search for it.
-
kuhntech
- MagicJack Contributor
- Posts: 63
- Joined: Tue Dec 15, 2009 2:51 pm
- Location: Chico, CA
- Contact:
Go to a command prompt and type "route print" at the top you will see any and all network adapters attached to your computer. They should be numbered on the far left side. My guess is that the number you have in the "IF" (interface) section to create the route is not correct. Here is an example route:
route add 66.104.81.70 mask 255.255.255.255 192.168.1.2 metric 1 if 0x1
If you want the route to stay on the computer even after a reboot you can add "-p" to the command. Here is an example:
route add -p 66.104.81.70 mask 255.255.255.255 192.168.1.2 metric 1 if 0x1
This is what worked for me, hope if helps. FYI here is the format for creating a route:
route add/delete/change [ip address] mask [netmask] [gateway] metric [1] if [interface number]
route add 66.104.81.70 mask 255.255.255.255 192.168.1.2 metric 1 if 0x1
If you want the route to stay on the computer even after a reboot you can add "-p" to the command. Here is an example:
route add -p 66.104.81.70 mask 255.255.255.255 192.168.1.2 metric 1 if 0x1
This is what worked for me, hope if helps. FYI here is the format for creating a route:
route add/delete/change [ip address] mask [netmask] [gateway] metric [1] if [interface number]
Under "interface list," 0x1 is MS TCP Loopback. 0x2 is Realtek Gigabit Ethernet NIC
Using the command
route add 67.88.183.77 mask 255.255.255.255 192.168.1.2 metric 1 if 0x1
produced the same error. I also tried the above with 0x2 and got the same error.
I'm guessing that 192.168.1.2 is the problem. How would I know which IP number to use?
Using the command
route add 67.88.183.77 mask 255.255.255.255 192.168.1.2 metric 1 if 0x1
produced the same error. I also tried the above with 0x2 and got the same error.
I'm guessing that 192.168.1.2 is the problem. How would I know which IP number to use?
Thanks. That seemed to work. At least there were no errors. Is there an easy way to check if it's rerouting other than using pmdump? The file it produced was 86mb and took forever to load into notepad.
I've tested the MJ, and call quality is no better. I don't know what's causing that. MJ's audio has been consistently good for 2 months and now suddenly voices (and rings!) sound like a highly compressed mp3 with a tinny swishy sound. No dropouts or choppiness though, so it doesn't sound like a bandwidth issue.
I've tested the MJ, and call quality is no better. I don't know what's causing that. MJ's audio has been consistently good for 2 months and now suddenly voices (and rings!) sound like a highly compressed mp3 with a tinny swishy sound. No dropouts or choppiness though, so it doesn't sound like a bandwidth issue.
-
kuhntech
- MagicJack Contributor
- Posts: 63
- Joined: Tue Dec 15, 2009 2:51 pm
- Location: Chico, CA
- Contact:
If you open a command prompt and run "route print" it will show you all of the routes on your PC. Unless you added the "-p" to the route it would not hold after a reboot. The other problem might be that the other proxy servers are not being blocked. I think I read somewhere on here of the wiki page that you had to block all of the other proxies also. I will try to find that info.
That link is the page where I found the original instructions I had been following.
According to the article, blocking your unit's default IP should force it to choose another one. No need to block all others unless you want to force it to choose a specific IP (the one left unblocked). I'm only trying (for now) to block the one it's normally using.
I haven't rebooted, so it should have kept the route command.
Route print shows the same IPs as it did the first time. None of them are MJ IPs.
According to the article, blocking your unit's default IP should force it to choose another one. No need to block all others unless you want to force it to choose a specific IP (the one left unblocked). I'm only trying (for now) to block the one it's normally using.
I haven't rebooted, so it should have kept the route command.
Route print shows the same IPs as it did the first time. None of them are MJ IPs.
-
kuhntech
- MagicJack Contributor
- Posts: 63
- Joined: Tue Dec 15, 2009 2:51 pm
- Location: Chico, CA
- Contact:
Oh okay sorry, I didn't completely understand what you were doing. To block that IP specifically you will want to do the following:
route add [proxy ip] mask 255.255.255.255 [fake local address] metric 1 if 0x2
Where is says fake local address put in an ip address that is in the same range as your local area connection but make sure there is nothing using that ip. It will try to send all traffic sent to the MJ proxy ip to the fake address you put in and when it doesn't get a response it will try another proxy.
Sorry for the confusion. Hopefully this helps.
route add [proxy ip] mask 255.255.255.255 [fake local address] metric 1 if 0x2
Where is says fake local address put in an ip address that is in the same range as your local area connection but make sure there is nothing using that ip. It will try to send all traffic sent to the MJ proxy ip to the fake address you put in and when it doesn't get a response it will try another proxy.
Sorry for the confusion. Hopefully this helps.
When I do the route command, it shows no errors.
But if "route print" is executed while using MJ, it still shows the IP I'm trying to block.
In the 5th line of IP#s, it shows:
Network Destination: 67.88.183.70 (which is what I want to block)
Netmask 255.255.255.255
Gateway (my default)
Interface (my IP #)
So it appears that using the default gateway as the "fake local address" is not working.
But if "route print" is executed while using MJ, it still shows the IP I'm trying to block.
In the 5th line of IP#s, it shows:
Network Destination: 67.88.183.70 (which is what I want to block)
Netmask 255.255.255.255
Gateway (my default)
Interface (my IP #)
So it appears that using the default gateway as the "fake local address" is not working.
The default gateway ends in .1 and my IP ends in .131 so I chose .100 as the last 3 digits.
Again there were no errors in the command box, but it still connects to the default MJ IP.
So I tried .200 - same result
I even added the vms number as well (67.88.183.77) - same result
I looked in the firewall because of donschjr's suggestion, and while MJ is being used it shows the domain name with the city for vms. It shows the city for proxy01 even when not in use. So I'm certain it's not blocking it. I'm using Kerio Personal Firewall 4 and don't see anything there that would block an IP #.
Again there were no errors in the command box, but it still connects to the default MJ IP.
So I tried .200 - same result
I even added the vms number as well (67.88.183.77) - same result
I looked in the firewall because of donschjr's suggestion, and while MJ is being used it shows the domain name with the city for vms. It shows the city for proxy01 even when not in use. So I'm certain it's not blocking it. I'm using Kerio Personal Firewall 4 and don't see anything there that would block an IP #.
No, I haven't tried Sygate. It has a trial version, but Kerio is working well and I'm reluctant to start all over again with another. In the past I had trouble finding a firewall with the functionality that I like. Each one seems to have a different way of descrbing what it blocks and how. It's difficult to be sure what it's doing. Maybe when I get more time I will experiment with it.
-
ChairMaster
- magicJack Apprentice
- Posts: 18
- Joined: Sat Mar 05, 2011 2:06 pm
Sorry, I don't mean to hijack your thread, but I tried blocking all but 2 proxies by using my firewall router method and found out magicjack only seems to try 2 proxies before giving up. (http://www.phoneservicesupport.com/magi ... html#68948)
I have the feeling you'll run into the same thing once you get your software firewall setup, so I'm interested to see if you do.
FYI, I think wireshark is easier to use than pmdump. You don't need to save a file, just work with the live capture.
I have the feeling you'll run into the same thing once you get your software firewall setup, so I'm interested to see if you do.
FYI, I think wireshark is easier to use than pmdump. You don't need to save a file, just work with the live capture.