Home User CP Donate Chat Register Today!  
  Get New posts Faq / Help?
   


Go Back   Hackint0sh > Projects and Hacks > iPhone > General > Tools

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-30-2008, 03:47 PM
wormhole
Status: Offline
Junior Member
 
Join Date: Jan 2008
Posts: 9
Rep Power: 0
wormhole is on a distinguished road
Angry [Sharing] Internet on Ethernet from PC to WiFi for iPhone (XP ad-hoc)

hi!

just got an iPhone 3 days ago, mistakenly upgraded to 1.1.3, downgraded to 1.1.1 and 4.01.13_G and unlocked with anySIM.
I live in Europe, carrier provides no EDGE and got no WLAN in my village. So had to do that in a town ~20 miles away. I 've got
an XP laptop, with a wireless 802.11g built-in and a cable LAN connection. So I'd like to share my LAN's ADSL connection with
the iPhone using my wireless adaptor as a hotspot. Reading a bit about it convinced me it's possible.

There's two approaches I found. Easier it seems is to set up a DHCP ad-hoc on your wi-fi adaptor and bridge the two connections
on your laptop. Done that, failed miserably. None of the connections work (even after a reboot).

Second is to create an ad-hoc (DHCP or static eg 192.168.0.1) on your wireless adaptor and use Internet Connection Sharing (ICS)
on your LAN adaptor. Using this method I got closer. In the DHCP version I get an IP, Subnet, Router and DNS automatically on my
iPhone, can ping the iPhone from cmd but cannot ping the PC from vt100 and Safari times out - so no Internet although I can see
the ad-hoc and connect to it succesfully. Static version, connects but I'm not sure what to use as router (I guess the DNS servers are
the same as my LAN connection). Anyways, I try both my wi-fi 192.168.0.1 and my LAN IP but none works - same results as above.

I make sure that I have the right settings (ICS, win manage connection, ad-hoc only, pc to pc etc) but nothing seems to work.
Do you guys have any idea how I can get around this? any help much appreciated
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 01-30-2008, 05:36 PM
Derter
Status: Offline
Senior Member
 
Join Date: Nov 2007
Posts: 104
Rep Power: 9
Derter is on a distinguished road
Default

Quote:
Originally Posted by wormhole View Post
hi!

just got an iPhone 3 days ago, mistakenly upgraded to 1.1.3, downgraded to 1.1.1 and 4.01.13_G and unlocked with anySIM.
I live in Europe, carrier provides no EDGE and got no WLAN in my village. So had to do that in a town ~20 miles away. I 've got
an XP laptop, with a wireless 802.11g built-in and a cable LAN connection. So I'd like to share my LAN's ADSL connection with
the iPhone using my wireless adaptor as a hotspot. Reading a bit about it convinced me it's possible.

There's two approaches I found. Easier it seems is to set up a DHCP ad-hoc on your wi-fi adaptor and bridge the two connections
on your laptop. Done that, failed miserably. None of the connections work (even after a reboot).

Second is to create an ad-hoc (DHCP or static eg 192.168.0.1) on your wireless adaptor and use Internet Connection Sharing (ICS)
on your LAN adaptor. Using this method I got closer. In the DHCP version I get an IP, Subnet, Router and DNS automatically on my
iPhone, can ping the iPhone from cmd but cannot ping the PC from vt100 and Safari times out - so no Internet although I can see
the ad-hoc and connect to it succesfully. Static version, connects but I'm not sure what to use as router (I guess the DNS servers are
the same as my LAN connection). Anyways, I try both my wi-fi 192.168.0.1 and my LAN IP but none works - same results as above.

I make sure that I have the right settings (ICS, win manage connection, ad-hoc only, pc to pc etc) but nothing seems to work.
Do you guys have any idea how I can get around this? any help much appreciated

try to use OpenDNS on the Iphone

208.67.222.222
208.67.220.220
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 01-30-2008, 05:42 PM
Derter
Status: Offline
Senior Member
 
Join Date: Nov 2007
Posts: 104
Rep Power: 9
Derter is on a distinguished road
Default

If that fails

try with MagicDHCP,google for it.

little bit ostic to configure but works!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Sponsored links Remove advertisements
Advertisement
Advertisement

  #4 (permalink)  
Old 01-30-2008, 06:51 PM
razor's Avatar
razor
Status: Offline
Next American Idol
 
Join Date: Aug 2007
Location: New Delhi
Posts: 401
Rep Power: 25
razor will become famous soon enough
Default

Quote:
Originally Posted by wormhole View Post
hi!

just got an iPhone 3 days ago, mistakenly upgraded to 1.1.3, downgraded to 1.1.1 and 4.01.13_G and unlocked with anySIM.
I live in Europe, carrier provides no EDGE and got no WLAN in my village. So had to do that in a town ~20 miles away. I 've got
an XP laptop, with a wireless 802.11g built-in and a cable LAN connection. So I'd like to share my LAN's ADSL connection with
the iPhone using my wireless adaptor as a hotspot. Reading a bit about it convinced me it's possible.

There's two approaches I found. Easier it seems is to set up a DHCP ad-hoc on your wi-fi adaptor and bridge the two connections
on your laptop. Done that, failed miserably. None of the connections work (even after a reboot).

Second is to create an ad-hoc (DHCP or static eg 192.168.0.1) on your wireless adaptor and use Internet Connection Sharing (ICS)
on your LAN adaptor. Using this method I got closer. In the DHCP version I get an IP, Subnet, Router and DNS automatically on my
iPhone, can ping the iPhone from cmd but cannot ping the PC from vt100 and Safari times out - so no Internet although I can see
the ad-hoc and connect to it succesfully. Static version, connects but I'm not sure what to use as router (I guess the DNS servers are
the same as my LAN connection). Anyways, I try both my wi-fi 192.168.0.1 and my LAN IP but none works - same results as above.

I make sure that I have the right settings (ICS, win manage connection, ad-hoc only, pc to pc etc) but nothing seems to work.
Do you guys have any idea how I can get around this? any help much appreciated

The second method you are trying is the key.

First setup an ad-hoc connection and then share the lan with the wifi one...

Before I list the steps, make sure your firewall is turned off. That might be causing you not being able to ping your pc from the Term-vt100 on the iPhone.


Let me list the steps which i followed while doing this sometime back...

1. Goto Control Panel -> Network Connections
2. Right Click "Wireless Network Connection" -> Select Properties
3. Select the "Wireless Networks" Tab
4. In the prefered networks, select add
5. Enter a Network Name(SSID) eg adhoc
6. Set the Network Authentication as Open and check the box with "This is a computer-to-computer (ad-hoc);"
7. Click Ok. Go back to the general tab.
8. Select IPv4 and manually set the
IP address: 192.168.1.10
Subnet Mask: 255.255.255.0
Default Gateway: 192.168.1.1

Preferred DNS : 208.67.222.222
Alt DNS: 208.67.220.220

9. Now save the settings and turn on the wifi on both the laptop and the iPhone.
10. Set the IP address settings as static on the iPhone and set it as 192.168.1.11
and rest of the settings as above.

11. Next Turn the firewall down.
12. Select the Internet Sharing wizard then share the connection between the LAN and the wifi.

Hopefully this will work.
__________________
3.0 pwned , 3.1.2 NOT
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5 (permalink)  
Old 01-30-2008, 11:28 PM
wormhole
Status: Offline
Junior Member
 
Join Date: Jan 2008
Posts: 9
Rep Power: 0
wormhole is on a distinguished road
Default

Thanks Derter and Razor, it's great to have some backing on this one

I was pretty much trying along those lines with OpenDNS and ICS.

Razor the extra step (12) of running the IC wizard got me a bit closer...
I now get "No route to host - Host is down" when I ping from the
vt100...still no internet though

Derter I tried with MagicDHCP as well...boy this program is complicated!
Anyway, I got it running and got an IP etc on iPhone but still same results
as b4. I guess it's not the iPhone's fault or the wired connection but
rather something related to the wireless adaptor.

Once again many thanks guys...back to the fight now
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6 (permalink)  
Old 01-31-2008, 12:20 PM
wormhole
Status: Offline
Junior Member
 
Join Date: Jan 2008
Posts: 9
Rep Power: 0
wormhole is on a distinguished road
Default

hmm....seems problem has to do with the router between LAN and Wi-Fi after all...
can ping the iphone even when I'm not connected to the LAN so Wi-Fi and iphone communicate allright. I tried to restore windock in case this was the problem but no luck...I'll let you know if I manage to get it working.

update:

I also managed to connect with Winscp...good connection speeds but after a while I get this:

Host has not answered for more than 15 seconds. Warning: aborting this operation will close connection.

ai, ai, ai ....

Last edited by wormhole; 01-31-2008 at 03:26 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Sponsored links Remove advertisements
Advertisement
Advertisement

  #7 (permalink)  
Old 01-31-2008, 03:52 PM
Derter
Status: Offline
Senior Member
 
Join Date: Nov 2007
Posts: 104
Rep Power: 9
Derter is on a distinguished road
Default

Quote:
Originally Posted by wormhole View Post
hmm....seems problem has to do with the router between LAN and Wi-Fi after all...
can ping the iphone even when I'm not connected to the LAN so Wi-Fi and iphone communicate allright. I tried to restore windock in case this was the problem but no luck...I'll let you know if I manage to get it working.

update:

I also managed to connect with Winscp...good connection speeds but after a while I get this:

Host has not answered for more than 15 seconds. Warning: aborting this operation will close connection.

ai, ai, ai ....
fisrt connection with winscp take about 40 second.
if the connection crash you have a firewall running on the router(or xp) that stop connection.
you have to open the port on the router for winscp to work.
I managed internet to work with ics and a bridge + OpenDns.
I also made magicdhcp to work + opendns
try with a static bridge and with a dhcp bridge and always Opendns.
Once you get connection,you can try your default dns.

anyway,if you get it to work the connection result unstable,at least in my case.

I know that you don't wont spend money,but the best solution is to buy an access point,or a dsl wi-fi modem/router.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8 (permalink)  
Old 01-31-2008, 04:18 PM
wormhole
Status: Offline
Junior Member
 
Join Date: Jan 2008
Posts: 9
Rep Power: 0
wormhole is on a distinguished road
Default

my bad about the winscp connection...
it turns out it only hangs when I try to copy files from the iphone that it needs for the wi-fi connection. Otherwise I managed to download the whole iphone disk on my PC and upload ~60Mb to the iphone with no problems.

I have no firewall running at all...the problem I thing has to do with the way my wi-fi adaptor communicates with the LAN adaptor. The Wi-Fi to iPhone connection works fine. I also figured that's quite a common problem. I'll give it another shot and try with a wireless router this weekend. If I don't get it to work and I see some light with the router then I'll buy one myself.

For the moment I'll try the bridge solution that you suggested. By the way, on the iPhone do I set the router IP address to the one of my wireless adaptor (192.168.1.10)? Once again grateful 4ur help mate! Cheers
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9 (permalink)  
Old 01-31-2008, 04:39 PM
Derter
Status: Offline
Senior Member
 
Join Date: Nov 2007
Posts: 104
Rep Power: 9
Derter is on a distinguished road
Default

Quote:
Originally Posted by wormhole View Post
my bad about the winscp connection...
it turns out it only hangs when I try to copy files from the iphone that it needs for the wi-fi connection. Otherwise I managed to download the whole iphone disk on my PC and upload ~60Mb to the iphone with no problems.

I have no firewall running at all...the problem I thing has to do with the way my wi-fi adaptor communicates with the LAN adaptor. The Wi-Fi to iPhone connection works fine. I also figured that's quite a common problem. I'll give it another shot and try with a wireless router this weekend. If I don't get it to work and I see some light with the router then I'll buy one myself.

For the moment I'll try the bridge solution that you suggested. By the way, on the iPhone do I set the router IP address to the one of my wireless adaptor (192.168.1.10)? Once again grateful 4ur help mate! Cheers
I had the same problem with winscp.

when you open winscp in file protocol select "SCP".
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Sponsored links Remove advertisements
Advertisement
Advertisement

  #10 (permalink)  
Old 01-31-2008, 04:56 PM
Derter
Status: Offline
Senior Member
 
Join Date: Nov 2007
Posts: 104
Rep Power: 9
Derter is on a distinguished road
Default

For your internet connection:
Post your lan adapter model.
i'll check if is possible to install a driver with Soft Ap.
So that it will work like an access point.
i did it on Atereos adapter.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +2. The time now is 06:31 AM.



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.2 Ad Management by RedTyger
follow us on Twitter!

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448