I have a local network at my home and have a system addressed at 192.168.2.2 in the local network. I want to access this local system from outside(of course I am aware of the Global IP) using both ssh and using URL. How can I do it? (Apache is installed in my system.)
There are few posiblities.
First if you are targeting specific computer outside your home network and this computer has known IP you can initiate connection from your home PC to this computer using some program like Putty.
If you want to access your computer from anywhere at any time, than some kind of service should be used, google for "dynamic DNS free". Depending on your Internet connection you will make changes on your PC on your Router.
To acces SSH from outside you need to portforward that port.
See http://en.wikipedia.org/wiki/Port_forwarding for more information
Related
I need two things:
Disabled Internet access on my VM.
Enabled local network access from my VM.
I'm currently trying to replicate a bug on my CentOS7 VM which requires that I have no direct internet access, only able to connect to the web through a proxy on my local network. I've taken two paths to this so far:
Disable the Internet on my Windows machine. Why this didn't work: My VM just...froze until the internet was turned back on. Currently considering looking into the possibility of a daemon and disabling it.
Disable Internet access only on my VM. This hasn't worked yet. It's the path I'm taking right now, but everything I've tried has done the same as the above: frozen my VM, only this time in order to get it back I need to shut it down completely and restart it. Given that I have to mount drives on it to do what I need to do, it's understandable that this is a less than ideal approach. Below are images of my NAT settings and the in-VM Network UI.
I've also gone in and turned on Airplane Mode, disabled the IPv4 and IPv6 manually, and went through all the network settings to see what there was. A Google search turned up nothing except an OSX-specific workaround which I couldn't replicate on my system.
Does anybody have any suggestions?
EDIT:
The above still applies, but I'm trying to take another route to #2. What I'd like to do is shut down all traffic to my VM except from the proxy and network. However, my network is accessible only through my host machine, so I don't want to shut my host machine out entirely, just internet coming from it. Any thoughts?
You could achieve the desired effect by disabling the nameserver configuration.
Just empty the /etc/resolv.conf file (of course after making a backup for later).
I want to create an application that makes some computers in lan of each other (Computers are not in a local network) but the are all connected to internet
I'm looking for a function for C++ or VB.NET to do it
My goal is to make them in lan of each other so if oen of them create a host in game,the others see his host and they can join him and play
If someone gives me an starting point it would be appreciated.
You just want to network with the clients, then use the Internet - it is the biggest "lan" there is. Create a directory service that every client checks in with. In this directory service, each player that wants to host a game advertises themselves as a server; and clients can directly connect and play the game.
I really have no idea how to ask this, so with that have no idea where to search either. So.. I have a unique situation I think.
I have virtual box installed, with a local running server on it. I access it through my windows machine the host machine rather. via 127.0.0.1:3001. So I am here developing an app that can only be hosted on the virtual machine, as there are a lot of moving parts specific to it that can't be hosted on a WAMP or even a typical web-server elsewhere. The vm OS is Ubuntu. So here I am with a slight issue I want to see how this looks on my iPad, and a couple other tablets as the software being built into the VM is browser based as far as the GUI goes.
So theres the pretense. Heres the delima I want to use the built in browser on ipad to navigate to the browser based portion of my app on the VM like I can do through the Host machine. But Im not entirely sure how to achieve that. Its gotta be done over Wifi but what would I need to do to set that up accordingly?
Host Machine is Windows 7 Ultimate, VM is Ubuntu 10.x. This is not a screen sharing notion either. I don't want a to remote view the PC I want to type in the equivilant of 127.0.0.1:3001 into my ipad browser and view the service like I do vm to host machine.
Change network virtual card on virtual machine parameters. You should select 'bridget' card insteat NAT or Host only. In this way virtual machine get a network IP and you can connect to this IP from your IPAD.
Forward works great for things like this https://forwardhq.com/
I need to connect to a VPN Server , I can`t use windows Connections , My Application should work independently !
I tested some Components using RAS Api , they works ! but by using windows connections .
how can i do that without any dependency to windows connections ?
The problem with this question
"VPN" stands for "Virtual Private Network". It's a way to make a private network available to your computer, possibly in a secure way, so your computer can use standard IP protocols as if it were physically connected to the private network.
The operating system needs to know about that network, so of course all VPN implementations use "windows connections". From a different perspective: When you're connected to a VPN you can open a TCP connection to an IP on the private network as if it were on your local network. Since it's the operating system's job to set up your TCP connection and route your TCP/IP packets, of course it needs to know about the VPN! If it doesn't, it'll simply forward all your requests for the given IP to it's default router and fail with a "no route to destination" message (or a "time out", if your router is not kind enough to tell your system it has no idea what the private IP is).
Can it be done?
From a theoretical point of view, of course, you can bypass Windows completely, but then you'll have to "roll your own" everything. You can't use the Windows IP services, you'll have to implement your own TCP. I'm sure there are about a million other little things that need re-implementing.
For a starting point I'd look at the Open VPN: it's Open Source and available for Windows. It uses the UDP protocol as the bases for the VPN implementation, unlike the Windows VPN (that one uses GRE - General Routing Encapsulation, protocol 47). Open VPN itself, of course, uses a "windows connection" to do it's job, because it aims to provide a useful service, but you can use the source code as the bases for your own implementation.
I personally wouldn't even think about doing this, I'm just showing you the way and proving it's possible.
What should be done
I assume you want some kind of secure communication channel to your own service. Look into simple secure connections, tunneling protocols and proxies.
If this needs to be done for one service on one server, I'd look into a simple SSL implementation. Even better, look into using HTTPS.
If you need to access many different services on possibly different servers on the given private network I'd look into proxies.
I want to create a client server application to test socket created and threads are running between client and server.
I want to check this for internet application.
But being on local machine. I cannot check.
You could run a virtual machine on your real machine and a bridge-mode network connection between the two. Then run the server on one and the client on the other.
However, you will not get a good picture of how well it responds under heavily loaded network conditions. For that you truly need a private network with a phantom load generator.
VirtualBox, VirtualPC, and vmware can do this. You might get better/more responses on superuser.com.