jlippold / WifiSMS

iphone webserver gateway for SMS
194 stars 68 forks source link

Unable to connect on port 8080 #36

Open ash007osh opened 12 years ago

ash007osh commented 12 years ago

Hi

I am using iPhone 3G 4.2.1 (Jail Broken). I installed the App yesterday, as I really liked the idea. But unfortunately, so far I am unable to use it. I am on windows 7 & using Firefox. I also tried to reboot the fone but no luck. Then I tried to open the URL from my iPhone's Safari browser but even then I was unable to open it. Any idea on what the problem can be?

My laptop's IP is coming as 192.168.1.5 & iphone's is 192.168.1.2, so I am not sure where the problem can be!! I am trying to open http://192.168.1.2:8080 from the browsers..

I did a port scan of my iphone & found that port 8080 is not even open..!! I have checked in SBSettings and WifiSMS is ON there.. So what could be the problem that port is not opening up?

Regards, Ashootosh

dlamanna commented 12 years ago

I also have this issue - iOS 4.1, windows 7 x64, tried opera and chrome. I've enabled/disabled wifiSMS in sbsettings several times, restarted my phone, etc. I can SSH in fine, have turned off my firewall, nothing seems to work.

Gilgalidd commented 12 years ago

Hi, I've just installed this app, rebooted, reinstall, rebooted, unistall, install, rebooted and I can't connect on :8080. i've download netstat on AppStore and I don't see the port 8080 in listening .

I've try with the SBSetting wifiSMS icon on ON and OFF.

i've an Iphone 3G under iOS 4.2.1 and i've installed the WifiSms with cydia.

Can you describe how install the application with ssh and .deb ?

Thanks for help ;)

ash007osh commented 12 years ago

Still not able to use this App.. May you provide us the location where this App gets installed..? I dont see it inside /Applications. Also, is there any location where logs get generated?

ash007osh commented 12 years ago

Well I found following...

cat /private/var/mobile/Library/SBSettings/Commands/com.WifiSMS.enable

!/bin/sh

if [ -f /tmp/WifiSMS-ON ] then rm -f /tmp/WifiSMS-ON; killall WifiSMS; else touch /tmp/WifiSMS-ON; sudo -u mobile nohup /User/Library/WifiSMS/WifiSMS "$*" > /dev/null 2>&1 & fi

So I tried, running the command as it is.. but Redirected the outout to /tmp/newlog..

iPhone:~ root# sudo -u mobile nohup /User/Library/WifiSMS/WifiSMS "$*" > /tmp/newlog nohup: ignoring input and redirecting stderr to stdout nohup: failed to run command `/User/Library/WifiSMS/WifiSMS': Bad CPU type in executable

iPhone:~ mobile$ file /User/Library/WifiSMS/WifiSMS /User/Library/WifiSMS/WifiSMS: Mach-O executable acorn

Is there some compatibility issue with iPhone3G????

dlamanna commented 12 years ago

I'd just like to add that I'm also using an iPhone3G (forgot to specify when I originally posted)

shaszard commented 12 years ago

I don't think is a wifisms issue - I also had problems so tried accessing it from the iPhone itself. That worked fine, I tested OpenSSL and "Folders" app as well.

Basically it seems the iPhone is simply ignoring inbound requests or blocking them somehow. I think it's specific to the 3GS phone and possibly only iOS 5.0.1.

Anyone able to confirm these thoughts??

dlamanna commented 12 years ago

Possibly, but it can't be exclusive to the 3GS or iOS 5.0.1

Everyone posting in this issue previously has an iPhone 3G and <= iOS 4.2.1

shaszard commented 12 years ago

Lol I should learn to read properly before posting sorry :)

fopina commented 12 years ago

The app is compiled with armv7 only (3GS and up, 3G is armv6) I believe. Simply recompiling it with armv6 added to architectures should let it run in 3G.

dlamanna commented 12 years ago

Hmm, that would be awesome if the issue was that simple. Unfortunately I'm not sure how to try that fix myself - would it be too much to ask for you to create a separate branch for the 3G? I'd be able to test it pretty quickly if that was the case.

fopina commented 12 years ago

Well, the bad cpu type is definitely from being compiled with the wrong architecture. And if it only happens in a 3G is must be armv6 missing in the supported architecures. Unfortunatelly, due to #32 I can't compile WifiSMS working for iOS4. Well, I can compile but sending SMS won't work (everything else should). That's why I only said what should fix it, but not actually done it :)

fopina commented 12 years ago

Ok phuzE, I assume you can get around with deb files, so here's a version compiled for armv6. To remember: sending SMS won't work, this is just to see if everything else works :)

dlamanna commented 12 years ago

Nice, worked like a charm! So sending SMS is not possible or just currently not working?

Thanks again.

fopina commented 12 years ago

As I said before, the code to send SMS in iOS4 is there, it's just that I can't compile that part in my environment, but treason can. I've sent a pull request with the change and let's just hope he includes that flag in his next release :)

gplanas commented 12 years ago

I had the same issue. However, I have a iPhone 4 running IOS 5.1.1. I plugged my phone into my PC to charge and it worked.

clarity99 commented 11 years ago

same issue (not being able to connect to 8080) on iphone 5, ios 6.1.

Tatsh commented 11 years ago

Also cannot get this work here. Connection is refused.

Tatsh commented 11 years ago

It crashes on start. Crash log here: https://gist.github.com/Tatsh/625fabe99fe1e7acceb5

V10lator commented 11 years ago

This is from a iPhone 3GS running iOS 6.1.3:

dyld: Symbol not found: _OBJC_CLASS_$_CKSMSService
  Referenced from: /User/Library/WifiSMS/WifiSMS
  Expected in: flat namespace
 in /User/Library/WifiSMS/WifiSMS

I guess it's not compatible with iOS 6?