How to access web server through an ad-hoc connection? [closed] - networking

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
If I were to connect my iphone to my apache server through an ad hoc connection, how would I access my apache server? What would the URL be for me to access my server? My guess would be that localhost should do it however, I am not aware of networking protocols and how they work.

I did that kind of thing with an iPad:
Like Gunnar Hoffman said:
1) Get your computer's ip, get the port number on which your apache runs
2) Browse http://ip:port with your iOS device (where you substitute ip with the ip of your computer and port with the port on which apache runs the server)
If you use the built-in webserver (on Mac OS X; which is configurable through the system preferences) you are presented the url of the server (also in the system preferences).
I personally used this "technique" to transfer files to an iPad via WiFi.

Your best bet would most likely be to:
1) connect both devices to a single wireless network/router
2) determine your computer's ip address via ifconfig, or ipconfig (for windows)
3) then type http://your_ip_address:your_servers_port/ in your mobile browser
for example http://192.168.1.1:8888/
Also this is not considered Ad-Hoc, but this is a simple, easy to setup, and portable solution.

Related

VM (Parallels) not using the VPN connection on the host (osx mavericks) [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 5 years ago.
Improve this question
I am running Tunnelblick from my Mac.
My local network is 192.168.0.0/32 and the network I am trying to connect is 192.168.252.0/22.
Also, I am using a VM (Parallels) running Windows 8.1.
I want to connect to a VPN from my Mac and share this network with my VM.
So, I am facing some problems to do that. Here they go:
When I'm connected to the VPN, my ip address does not change to the ip address from the VPN network. My ip is still 192.168.0.132.
Despite the problem with the ip address, from the host I still can 'ping' the hosts from the network I am trying to connect writing 'ping host.domain.com'. But 'ping host' does not work.
I've already set the network to ‘shared’ in the device menu from Parallels. But, even with this, my ip address from the VM is 10.211.55.4.
In my VM I can't even ping the hosts from the other network
I'm sorry if I wasn't clear enough. All this problem is a little complex to describe.
Something important: The same configuration file I am using works perfectly (without the IP and the DNS problems) when I am using a Windows machine.
Change the VM's network adapter type to "Shared" within Parallels Desktop.
Configure virtual machine
Change network source to shared network
if that still does not work, disable ipv6 in guest machine.

setting up a server for local small office [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 6 years ago.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Improve this question
I am very new in networking and setting up server. I have only used XAMPP to develop my site locally on my desktop computer. I did some researches and learn about all those network equipment online, but I found myself still confused about what I need to do to set up a server between computers. So I hope I can find the answers from experts. I have 4 computers in my office, and I am trying to create a local network that allows all 4 computers to access the files and localhost in the desktop computer.
1.) I have a modem and a router. My desktop computer and the other 2 computers are using wireless while my sister's computer is using cable that connects to the modem. In order for my sister and the other computers to access my files and localhost, do I need to plug all of the computers into a switch?
2.) I have read online that people set up port forwarding to allow others to access their website online. But right now I am just trying to make a local files and web server, do I need to set up port forwarding as well?
I am using Windows Vista and XAMPP. I couldn't solve any of the questions and confusion after 1 week of looking through online. So if anyone has a detailed guide for setting local file/web server, that will help me so much and thank you for your time as well.
1) You do not need a switch for setting up a server. An switch is just a device that basicly expands the amount cabled network connections you have. Most routers come often with 4 LAN ports and one WAN(probably conencted to your modem).
If you have lets say, 5 computers that needs a cabled connection. You will need a switch to be able to connect all those computers at the same time.
2) You only need to do port forwarding if you want others to connect from outside your local network. If you want to put a website up on a server, you will need to port forward port 80 (the port for http) to your servers local IP.
All port forwaring does is to say to your router that if it gets a packet of data with this port number to your public IP, then send it to this spesific local IP adress (your server with XAMPP). If you don't port forward, the router doesent know what local ip adress to send the packet of data to, then it just discards it, which means others cant access your website.
If you want to open your website from outside your local network, and have port forwarded your router. You probably want to setup a domain with DDNS (dynamic domain name system).
What that does is that people can write something like "www.google.com" instead of your public ip adress. A good site for that is: http://www.no-ip.com . Keep in mind that if you don't want to add a domain and just use the ip adress, your routers public IP address may change over time. Unless you have ordered a static IP address from your ISP (Internet service provider).
For your file server i would suggest a FileZilla FTP Server (FTP = File Transport Protocoll). Set this up on your server machine and follow this tutorial: https://www.youtube.com/watch?v=251TQq98zmo . Then after you have set up and configured your FTP server, you can connect your clients to the server.
I would suggest this guide to connect your other machines to the FTP server:
http://www.wintuts.com/Map-Network-Drive
Keep in mind if you want to access your FTP server from outside your network you will need to port forward both port 20 and 21. For security reasons i will strongly suggesting a password on your FTP server, unless you want anyone to connect to it.
Hope this helped!
-Kad
(PS: just comment on this post if something is unclear, or have further questions! :D )

Whatismyip and ifconfig giving different IP addresses [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I am looking to get the IP of my dev server. Everything online says to either do ifconfig or to curl something like whatismyip. These are giving me 2 different addresses. Why?
To add: I have no idea if it's behind a router or anything. I simply have an IP that I SSH into. I assumed that address was the address of the server - but when I curl http://ifconfig.me/ I get a completely different address.
Disclaimer: I have close to 0 networking knowledge.
You are most likely behind a router that does network address translation. Your ifconfig could be showing an IP address from a private range, such as 192.168.xxx.xxx.
An alternative is that your development server has several network interfaces, in which case ifconfig should be showing you several (such as eth0, eth1). However, I have the feeling it's the first, because you didn't mention this.
You could possibly check for the former with a tool such as tracepath, thereby discovering the nodes in between your development server and the other servers. But it might just be easier to check with the IT administrator(s) for your development server.
Well if you're behind a router that could be one reason.
If your dev server is externally facing it's entirely possible that the DNS server that whatismyip is using has a different IP entry than the DNS server ifconfig.me is using.
try running tracert www.yahoo.com from the command line and see what IPs shows up in the results.

Using SCP to transfer files from Windows to Mac [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I am trying to write a script that, executing from a mac, will download 4 files from a windows machine to my current directory. I tried downloading those files using scp, but whenever I try connecting to the host, I receive a "Operation timed out - lost connection" message. After doing some research, I found out that I need an ssh daemon tool on the windows machine in order to complete the connection. I installed FreeSSHd and tried using scp again, but with no success. I also tried turning off my windows firewall, but it didn't work either.
Does anyone know why I am getting the timeouts? What would be steps I needed to follow to be able to use scp from a unix machine (mac) connecting to a windows machine?
P.S.: Would it be possible that I am not using the correct IP address to connect to the host? I ask because I also tried "ping XXX.XXX.XXX.XXX" on the mac and I received a timeout message
Thanks in advance!
From you P.S. it is pretty clear that your issue lies deeper. Since you can't even ping the Windows machine from the MAC host (and assuming ICMP packets aren't being filtered), I recommend checking the network and connectivity of your hosts (if there is a network admin, he could be of great help), especially:
that both computers are connected to an internal network or to the internet;
that there are no other firewalls in the network;
the window's host IP (ipconfig in the command line in the windows host);

How to turn one server into many servers? (Virtualization/VMWare) [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I'm hoping for a high level discussion of this problem I know is quickly approaching my application.
I have a server that binds on a specific port and manages TCP Sockets from my clients. I know that it is common practice to use VMWare to virtualize servers and run multiple servers at once.
How can a single server design be changed to support multiple servers?
Multiple servers can't bind to the same port. If I had to guess I would say a proxy server binds to the port and then sends connections off to the other servers to be handled as if it was still a single server application.
I'm wondering what options there are and what are the common practices for solving this problem?
Thanks in advance!
Each VMWare machine is essentially a standalone PC, as far as the OS running inside a VM is concerned. Like on a real PC, a server can bind to the same port on different IPs, and each running VM can have its own IP on the virtualized network. VMWare has a built-in DHCP router that manages the IPs and network traffic of its running VMs. Each VM can have its own real independant IP on the Host machine's actual network, or they can share the Host's IP via VMWare's built-in router. The OS in each VM doesn't know the difference. Go ahead and bind your server to the same port on each running VM, it will work fine. VMWare will handle the packet routing as needed.

Resources