codeOfRobin / telekinesis

Automatically exported from code.google.com/p/telekinesis
0 stars 0 forks source link

User preference for serving IP / be better at choosing routable IP #10

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Install Parallels Desktop for Mac
2. Parallels installs Networking configurations for shared networking
3. iPhone Remote pulls IP from Parallels NAT for local page 

What is the expected output? What do you see instead?
It actually works on localhost, but will not work when the IP is entered into 
the iPhone nothing 
happens because it is not part of the router IP distribution

What version of the product are you using? On what operating system?
iPhone Remote 0.9.7 and Mac OS 10.4.10

Please provide any additional information below.

Original issue reported on code.google.com by jonathan...@gmail.com on 6 Jul 2007 at 2:49

GoogleCodeExporter commented 8 years ago
Yeah, I get this too. Not sure what the best solution for this is. The user 
should "know" what their routable IP 
is to be able to use this app, but we should at least pick a sane default. I'm 
noticing that I'm getting two bogus 
IPs from Parallels adaptors -- they both have PROMISC flags on them -- maybe 
that's a way to filter them out? 
In this case below it should have chosen the second one (the code currently 
always chooses the last one.)

2007-07-05 21:16:39.196 iPhone Remote[18265] interfaceEntry {
    Addresses = ("10.211.55.2"); 
    InterfaceName = en3; 
    SubnetMasks = ("255.255.255.0"); 
}
2007-07-05 21:16:39.196 iPhone Remote[18265] interfaceEntry {
    Addresses = ("10.0.1.199"); 
    InterfaceName = en1; 
    Router = "10.0.1.1"; 
    SubnetMasks = ("255.255.255.0"); 
}
2007-07-05 21:16:39.196 iPhone Remote[18265] interfaceEntry {
    Addresses = ("10.37.129.2"); 
    InterfaceName = en2; 
    SubnetMasks = ("255.255.255.0"); 
}

Original comment by bwhit...@gmail.com on 6 Jul 2007 at 3:27

GoogleCodeExporter commented 8 years ago
I could always grab en1 or en0 ?

Original comment by j...@gmail.com on 6 Jul 2007 at 5:38

GoogleCodeExporter commented 8 years ago
The issue as I see it with only grabing en1 or en0 is that en0 gets the IP 
address of the parallels network applied 
to if if not being used. Note the two attached images.  en0 is my gigabit nic 
on my MBP and en1 is my airport. 
en2-3 are parallels networking patches. Throwing out ideas.  Anyway to monitor 
which are sending/recieving 
packets? Or see which interface has a router IP plugged in?

Original comment by jonathan...@gmail.com on 6 Jul 2007 at 6:03

Attachments:

GoogleCodeExporter commented 8 years ago
Would it actually be possible to specify the interfaces telekinesis lsitens to? 
I may for instance want to listen on 
th ewireless but not accept connections from the ethernet if it is connected 
directly from the internet

Original comment by blaise.b...@gmail.com on 6 Jul 2007 at 1:24

GoogleCodeExporter commented 8 years ago
That makes the most sense. jnj, is there plans for a prefpane? We could put 
this in there as well as the ssl/media 
stream pref, port selection, password, etc...

Original comment by bwhit...@gmail.com on 6 Jul 2007 at 1:26

GoogleCodeExporter commented 8 years ago
This really needs to be accessible from the outside.  I would love control over 
a couple of machines in the office.

Original comment by jonathan...@gmail.com on 6 Jul 2007 at 4:12

GoogleCodeExporter commented 8 years ago
I'm going to change the title of this one to reflect the 'real' issue -- that 
we need a way to smartly choose the 
routable IP and/or let the user choose it/the interface

Original comment by bwhit...@gmail.com on 6 Jul 2007 at 7:21

GoogleCodeExporter commented 8 years ago
yeah. sometimes u have two legit interfaces and need to bind to one 
specifically, so u know what ip to route to.

Original comment by aaron.da...@gmail.com on 7 Jul 2007 at 3:43

GoogleCodeExporter commented 8 years ago
Perhaps you can utilize the shell call:

system_profiler SPNetworkDataType

Run that in Terminal and you'll see all kinds of information that you should be 
able
to parse out in order to make an intelligent decision, or to provide options 
for the
user.

One thing to note: When you run this, the devices show in the same order as you 
have
selected in Network System Prefs / [popUp] Show: Network Port Configurations... 
"Drag
configurations into the order you want to try them when connecting to a 
network."

In mine, I set my Airport to manual IP of 0.0.0.0, and in Show: Network Status 
I have
the red dot, but there's nothing in this command's output that is a dead 
givaway what
makes it red dot and not green... But, there's a lot of info to work with there.

Original comment by laserpix...@gmail.com on 9 Jul 2007 at 10:07

GoogleCodeExporter commented 8 years ago
please allow iPhone to use a configurable port.  I like to use port 80 so that 
I can get through firewalls easily.

Original comment by ags...@gmail.com on 15 Jul 2007 at 3:15

GoogleCodeExporter commented 8 years ago
agscal: it does. please try the latest versions and use the preference pane.

Original comment by bwhit...@gmail.com on 15 Jul 2007 at 3:27

GoogleCodeExporter commented 8 years ago
Any fix for this yet?

Original comment by robbie.t...@gmail.com on 10 Sep 2008 at 3:44