[Q] connect to mac via shared airport.. then send ssh? - Networking

I'm trying to set up some awesome "living in the future" automation with tasker / connectbot, but I'm having some trouble. Perhaps someone here might have an idea how to sort this out?
My situation and what I'm trying to do:
At my work, we have many (mac) computers connected to each other over our local (wired) LAN.
In the room where I work, one of these computers is a mac mini.
From my phone, I want to be able to connect to this mac mini over wifi via it's airport. Once connected, I want to be able to send an ssh command from my phone to the mac mini. This ssh command would trigger a script on the mac mini that would send multiple ssh commands to various computers on the local (wired) LAN.
Does that make sense what I am trying to do?
Here is my problem.
I can't for the life of me figure out how to ssh to the mac over the shared airport connection. On the mac I have enabled, "remote login" (ssh), "Internet sharing", and "personal web sharing".
I'm able to ssh to the mini from another computer over the local wired lan network.
Any help would be greatly appreciated!
Thanks!

Was able to get this working using an Ad-Hoc network created by the mini... Not ideal, but it works.

Related

Networking Gurus Please Help Me.

Hello Everyone. i have a pc that is hooked up on a LAN that gets net access via VPN on a local host. My PPC (XDA2i) on 2003 se is connected to my pc via Bluetooth on a PAN. so what i need is for the PPC to be able to access the LAN so it can connect to the host computer via VPN for net access... i tried 2 different apoproaches.
#1 I bridged the 2 connections (PAN and LAN) under the same Subgroup as the host. eg : 192.168.0.xx , Host = 192.168.0.1 . problem is the pc is unable to ping the PPC and vice versa. so if they are unable to ping what more establish a VPN connection. strangely, the pc is able to access the LAN, but the ppc isn't.
#2 I tried using XP's ICS. I enabled all the forwarding settings and assigned the PAN a different subgroup IP (192.168.1.xx). VOILA !!! the ppc is able to ping the host (192.168.0.1) I'm assuming the pc is forwarding ping packets to the ppc. but the pc acting as a NAT doesnt help solve my problem. weirdly, the ppc is unable to establish a VPN connection.
the type of VPN is unsecure uncrypted PPTP.
thanks everyone in advance

laptop as bridge to LAN for PPC?

Hello Everyone. i have a pc that is hooked up on a LAN that gets net access via VPN on a local host. My PPC (XDA2i) on 2003 se is connected to my pc via Bluetooth on a PAN. so what i need is for the PPC to be able to access the LAN so it can connect to the host computer via VPN for net access... i tried 2 different apoproaches.
#1 I bridged the 2 connections (PAN and LAN) under the same Subgroup as the host. eg : 192.168.0.xx , Host = 192.168.0.1 . problem is the pc is unable to ping the PPC and vice versa. so if they are unable to ping what more establish a VPN connection. strangely, the pc is able to access the LAN, but the ppc isn't.
#2 I tried using XP's ICS. I enabled all the forwarding settings and assigned the PAN a different subgroup IP (192.168.1.xx). VOILA !!! the ppc is able to ping the host (192.168.0.1) I'm assuming the pc is forwarding ping packets to the ppc. but the pc acting as a NAT doesnt help solve my problem. weirdly, the ppc is unable to establish a VPN connection.
the type of VPN is unsecure uncrypted PPTP.
thanks everyone in advance

Accessing SMB shares when using GPRS or 3G data connection troubles

Hi Folks,
I am having trouble trying to access any SMB shares when connected through 3G(or 2G) to my VPN. The VPN connects, and using VXUtils I can see that Host names resolve correctly to IP for my network, I can ping by host name and IP to my devices and I can do an ip range scan and it finds all the hosts connected to my home network. I can use RDP to connect to my XP machine through host name (With or without using pocket hosts) and I can view the setting html pages of my router through internal ip's but I cannot access any shares! Just to make matters a little more complex, if I connect through a wireless network (using the VPN) everything works fine (assuming it is allowing pptp passthrough)!!!
Oh yes, and the VPN itself and forwarding on the router etc is all fine as laptops and desktops can connect remotely (and of course so can I).
It is a Vario 3 on T-mobile.
Any ideas anyone? All I want to do is be able to access my SMB file shares (on a mybook world edition) whilst out on the move.
Thanks.

Any way to share desktop internet with droid by USB?

Hey there.
I´ve searched the forums but i didnt found for a way to share a desktop internet connection with the phone by USB.
There are many ways to tether (share phone connection with the desktop/laptop, wired or wireless), but are there any way to share internet the opposite way?
Thanks!
Dont think so.
As far as I know, there is only one option to connect to internet through PC. You can connect by WiFi, but only with Windows 7, because Desire can't connect to ad-hoc network.
If you are interested in this subject, go to connectify.me
Thanks for your help!
YES if you have windows 7 and wifi.
Sorry to bump this but was a big deal for me also and I found a solution.
I use a peice of software called connectify (google it) which uses some new part of windows 7 networking to allow you to turn your computer into a wifi router.
It even works when connected via wifi which obviously it pointless if you have wifi already. We dont at work so I use it then and have about 6 others connected from thier desires with no effect on me.
HI
I have found the solution to share PC's internet on mobile via USB. I am using ubuntu 10.04 and HTC dream with superfroyo2.2. I just did the following:
First of all, connect the PC to Phone via usb. and enable tethering on phone. (Don't panic. I am going to tell you how to do the reverse of it.)
Your PC will get the IP 192.168.42.37 and mobile will have the IP 192.168.42.129.
Settings on PC
sysctl net.ipv4.ip_forward=1
Above command will enable routing on the PC.
Now go to your phone via adb shell
and give following commands;
#setprop net.dns1 8.8.8.8
also need to set default gw using
# busybox route add default gw 192.168.42.37
by above commands on mobile you have set the dafault gateway to be PC's IP and also set the DNS.
and BINGO..your internet should work on mobile now.
If you still get some problem, then troubleshoot it step by step. First ping your PC from mobile and mobile from PC, both should ping each other and make sure, your PC is connected to internet and there is no firewall or antivirus on the PC that may block incomming traffic from mobile.
As a further test you can give following command to enable NAT on your PC:
// iptables -t nat -A POSTROUTING -s 192.168.42.0/24 -j MASQUERADE
I did not use this command and natting was done without this command on my PC, my be due to some error or other configurations that I don't know but its good for me that its working without it
HD roms had that IIRC
Sent from my HDfied HTC Desire
i dont think its possible right now :/

Remote Desktop Help

So I want to use remote desktop on my TP2 to connect to my laptop at home. I've done all the requirements to allow to use this feature; I've enabled port forwarding in my router settings and I have enabled remote desktop on my laptop's Windows 7 system properties. And on my TP2 I enter my ip address for the "computer" field, my Windows 7 account user name in the "user name" field (I only have 1 account on my laptop and it is admin), and the account password in the "password" field. After all of this, my TP2 will still not connect to my laptop. At this point I am pulling my hair out trying to figure out what I am doing wrong. Can anybody help?
Does your computer has public IP Address?
Yes. I go to www.whatismyip.com and it displays my ip address. I've tried entering this address in the "computer" field as well and nothing.
you'll need to forward port 3389 through any router you may be using (check out portforward.com)
you'll also need to enable RDP connection on the machine through System>Remote.
there are 1001 guides you'll find with a quick google, its not a phone specific thing.
edit: ive previously found that the WM RDP client wont start a 'net connection itself. if you find the same, just do it manually through com manager or check ur mail etc.
Did you forward port 3389 to the internal ip address of your laptop?
Do you have a software firewall on the laptop that may be blocking access?
First try to figure out where the error occurs.
Try to connect to your pc, using an other pc ( from outside )
If it works, it must be a setting in your mobile device.
If pc also doesnt work, it should be a port problem, in that case, try using hamachi..
Oh, and check if you dont have a blocking program, or firewall .. like suggested above
Does my phone need to be connected to wi-fi in order to use remote desktop or will it just use my carrier's data service?
develop1 said:
Does my phone need to be connected to wi-fi in order to use remote desktop or will it just use my carrier's data service?
Click to expand...
Click to collapse
it will use any data connection available, no need to connect to wifi if you have data plan activated.
some tips:
1. you must have NAT (port forwarding) configured in your router
2. If your router has public IP address on WAN port, then point 1. is just sufficient if you are on some routed network, than you need to ask your provider, maybe you will be lucky
2.1. (here are network ranges used as private, only for identification)
from 192.168.0.0 to 192.168.255.255
from 172.16.0.0 to 172.31.255.255
from 10.0.0.0 to 10.255.255.255
3. point 1. specification - enable NAT from WAN port to local IP address of your computer, specific port is TCP 3389. Also is good to make a reservation on DHCP server for this PC.
4. you need to enable remote desktop on your PC
4.1. computer properties - remote desktop setup - and its middle line on remote desktop settings
4.2. click "choose users" and check if your account is listed
Thanks alot to everybody's help! Your advise allowed me to get this things working, I really appreciate it. I had the port open and had remote desktop enabled on my computer but the thing that was killing me was I had the windows firewall on and my ESET Smart Security firewall on as well. Once I disabled them I was able to make the connection. What a head ache those firewalls gave me. I thank you all once again for your assistance.
I want to remotely access my PC from TP2, what software do I need to install on my phone?
sheharyar said:
I want to remotely access my PC from TP2, what software do I need to install on my phone?
Click to expand...
Click to collapse
The answer depends on what you have available to connect to. Your network (if any exists) and the machine/OS you want to connect to.
If you could let me know the following, I'll see if I can help:
How you machine's connected to the net. (for example, mines something like PC>Router>Cable modem>outside world).
The operating syustem in use on your PC. Specifically please, the edition and version is important to know. Mine's Windows 7 Ultimate, for example.
but, to cut a long story short: if you're not using a home edition of one of the recent windows OSs (XP and later), I'd suggest Remote desktop's the best way to go. There's a .cab knocking around here if you don't already have it on your phone and the PC end's described in the 'Configure Remote Desktop' and 'Configure Your Router' bits of this page: http://www.microsoft.com/windowsxp/using/networking/expert/northrup_03may16.mspx (ignore the other sections, they're not relevant unless you're running IIS)
enjoy
I have a WIFI Router installed, have a laptop with VISTA ULTIMATE and PC with XP Professional.
I am already able to RD my laptop from my PC.
I want to RDS my laptop from my phone via the same network/WIFI. I think it is pretty simple.
This is what I am doing
I have installed Remote Desktop Mobile
I have connected to WIFI
when I run Remote Desktop Mobile & enter my laptop's name, with username and password and click connect, connecting remains on top and is not connecting it. I am not in any domain, do i have to leave the domain name empty?
if you're not using a domain, leaving it blank's right.
Does it just time out on your phone?
Do you get the same if you try connecting via IP instead of your machine's name?
mad_tunes said:
if you're not using a domain, leaving it blank's right.
Does it just time out on your phone?
Do you get the same if you try connecting via IP instead of your machine's name?
Click to expand...
Click to collapse
I am able to connect from my pc.
When I try to connect from my phone either by IP or computer name, it does not even time out, it just remains stuck at Connecting...
Nothing happens after 5 minutes, even no error message appears.
sheharyar said:
I am able to connect from my pc.
When I try to connect from my phone either by IP or computer name, it does not even time out, it just remains stuck at Connecting...
Nothing happens after 5 minutes, even no error message appears.
Click to expand...
Click to collapse
Your laptop seems to be configured well ( you can access it using the pc )
So it must be a setting in the phone. You sure it is connected to wifi , maybe it stays on 3g ) Or maybe your laptop only allowes 1 ip to connect ( the pc's ip )
I am even able to connect to my laptop over internet as the port 3389 is fwd.
Do I have to configure anything on my phone other than installing that cab file?
Or maybe the cab file I've installed is corrupt or something, can someone please share the cab file?

Categories

Resources