U.S. CitiesCity-Data Forum Index
Go Back   City-Data Forum > General Forums > Science and Technology > Computers
 [Register]
Please register to participate in our discussions with 2 million other members - it's free and quick! Some forums can only be seen by registered members. After you create your account, you'll be able to customize options and access all our 15,000 new posts/day with fewer ads.
View detailed profile (Advanced) or search
site with Google Custom Search

Search Forums  (Advanced)
 
Old 09-08-2010, 08:30 PM
 
3,614 posts, read 3,091,232 times
Reputation: 909

Advertisements

I'll walk you through real quick what I have set up and what I'm trying to do.

My desktop is connected via LAN to the router (set up on 192.168.1.x), and the LAN is a shared connection with the desktop's wireless connection. Instead of getting an iffy signal between my phone's Wifi antenna and my home router, I figured it would be significantly easier to just Ad-Hoc my desktop's wireless and my phone, and run the internet that way--except I have a small(ish) problem.

On my phone is a remote for VLC media player, which uses VLC's web-interface to work. Normally, I just connected to the router with my phone, and it would connect through the static IP on my desktop. However, when I ad-hoc the connection, my phone receives the IP address of 192.168.137.2 (x.1 being the desktop wireless), and it can't access my desktop's IP connection--and I have no idea why. Is there a way to port-forward the Ad-Hoc connection, so that incoming requests on my desktop's wireless (which would be my phone's outgoing) would forward to my desktop's LAN?

My description isn't the best, but lacking a flow-chart, it's a little hard to put into words.
Reply With Quote Quick reply to this message

 
Old 09-11-2010, 12:29 AM
 
Location: Silicon Valley
3,685 posts, read 8,496,586 times
Reputation: 2978
It could be that the VLC web interface is only listening for connections on the 192.168.1.0 network, and not the 192.168.137.0 network. If you know the port number, you can check with the "netstat" command in a command window. There may be a preference setting in VLC to specify which network(s) to listen for connections when the host is multihomed.
Reply With Quote Quick reply to this message
 
Old 09-11-2010, 08:37 PM
 
Location: Silicon Valley
3,685 posts, read 8,496,586 times
Reputation: 2978
I played with VLC a little today. By default, the web interface only accepts connections from localhost (127.0.0.1). There is a file in the VLC install directory called http/.hosts. It controls what foreign hosts can access the web interface. I had to edit it to allow LAN access to the web interface. You must have edited that file at one time to get your phone's remote control app to work. You probably need to edit it to allow access from the other (Ad-Hoc) network. I actually was able to access the web server from the LAN before editing the .hosts file, but the server gave a "403 Forbidden" error - meaning the server is listening on all interfaces, but then examines the request once it comes in to see where it originated, rather than not listen at all on an interface if the permissions don't allow it.
Reply With Quote Quick reply to this message
Please register to post and access all features of our very popular forum. It is free and quick. Over $68,000 in prizes has already been given out to active posters on our forum. Additional giveaways are planned.

Detailed information about all U.S. cities, counties, and zip codes on our site: City-data.com.


Reply
Please update this thread with any new information or opinions. This open thread is still read by thousands of people, so we encourage all additional points of view.

Quick Reply
Message:


Over $104,000 in prizes was already given out to active posters on our forum and additional giveaways are planned!

Go Back   City-Data Forum > General Forums > Science and Technology > Computers
Similar Threads
Follow City-Data.com founder on our Forum or

All times are GMT -6.

© 2005-2019, Advameg, Inc. · Please obey Forum Rules · Terms of Use and Privacy Policy · Bug Bounty

City-Data.com - Archive 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 - Top