Sorry for i can't precisely specify the title.
I want to ask that i have created a server using ServerSocket class in java. and i am able to run it easily using 127.0.0.1:7896 and can fetch page from the browser. You can check out this using http://stackoverflow.com/questions/4655355/small-http-server-using-java
But when i try to run this with my external ip address it doesn't worked. So can anyone please tell me whether i am conceptually wrong or it is possible. if it is then how to?
Thanks
Are you behind a router or somekind of firewall ? Your own Operating system may be blocking the call.
there is no reason why you shouldnt be able to do it by using the external ip, as long as the DNS knows it and your machine and infrastructure allows the call
Related
So I'm thinking of building an application that acts like a VPN of sorts. So, the idea is my application should collect all traffic going from the device it is running on and handles them on it's own instead of forwarding them into the internet. My application will forward all this traffic/packets to an external server that performs whatever the original request was intended on. The same should apply in reverse also.
This thread Routing all packets through my program? gave me a few places to start with...
So far my idea is to use a packet capturing library and capture all packets and pass them on to another section of my program where another header is added on top of the existing packets, then sent to my external server. To server parses the header and determines the destination address and action and gets a response. This response is then wrapped with another header and is sent to my application. With help of netfilter PREROUTING hook I can forward the packets to the required application...
So this is as far as I thought of this. But you see I'm relatively new to network concepts and very much interested to move forward. So any suggestions on how-to's, or this might not work instead try this, is welcome. Even if my entire idea is faulty, please convey it. I'm not expecting you to explain things entirely, just point me some stuff that could be useful
And lastly note that the result I'm intending to get out of this is to demonstrate how I can unblock content within an organizational network. So most administrators block based on domains and stuff. So most one won't block connections to servers. But worry not I'm seriously not going to use this. This is just to improve my knowledge and out of my own interest...
So any help is appreciated. Thanks in advance...
I need your help.
I have had to install the ZeroTier One client to be all together in one serv. But also the idea is to change our IP from ZeroTier to work more comfortably from home. From Windows it is quite easy because you go to system resources and modify it on the network. But in MacOs I have spent several days looking for how to change the private IP only of the ZeroTier. Does anyone know how to do it?
Thanks in advance
A ZeroTier IP address is virtual and is thus assigned from the network controller. In order to change this you need to log into your account at https://my.zerotier.com/, go to the Network tab and navigate to the network in question and edit the assigned addresses. Once edited the changes will propagate to the nodes on the network automatically.
In practice if you are not experienced with this sort of concept it is best to choose a managed routing scheme that works best for your scenario and let ZeroTier automatically assign addresses for you.
I am using MonoTouch to develop an app which will connect to remote devices on a network. These devices have data which can be access through http queries.
If I provide a valid IP address to a controller the app works perfectly, however it hangs for a long time if the controller is not on the network. For this reason I thought it would be good to use the Reachability.cs class which can be found here:
https://github.com/xamarin/monotouch-samples/blob/master/ReachabilitySample/reachability.cs
Instead of using google.com as the host, I am using the IP address of the controller. I have read that there is a bug with this class which causes it to not like having "http" at the beginning of the URL. Having now tried numerous things to get this working I am out of ideas.
Do anyone have any suggestions? Perhaps I am reinventing the wheel here.
Having now tried numerous things to get this working I am out of ideas.
From your question it's not clear what issue you're having with the Reachability class. Maybe you could edit it and add more details ? e.g. what you tried so far, how it reacts like: never works, throws/crash, inconsistent results ...
Do anyone have any suggestions?
If your main issue is blocking the UI of your application then you could (and should anyway) do your connection and data transfer asynchronously (or a separate thread) and once completed update your UI (from the main thread).
E.g. using WebClient.DownloadDataAsync
Is it possible to connect to a Air app running on another machine via socket(assuming we know ip) or some other mechanism(which doesnt use Cirrus/stratus)? If it is can someone please help me on how?
Let me rephrase question, I dont want to connect to a server over socket. I would like to know if it is possible to connect from one AIR app on machine A to connect to another AIR app on machine B via sockets without cirrus. I'm not asking for someone else to do my work, I couldnt find any documentation or possibility of the above thing. My conclusion now is that it is not possible, but I would just like it to be verified by other people(experts).
Absolutely, as3 supports sockets. http://www.ultrashock.com/forum/viewthread/81676/
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/net/Socket.html?filter_flash=cs5&filter_flashplayer=10.2&filter_air=2.6
There are two ways to do it. One AIR app can act as a server by creating a ServerSocket object while the other app connects to this with the Socket class. The other way is to use the DatagramSocket class.
In both cases, the trick is that because of network access translation, the IP address to use is not always easily discoverable unless at least one of the computers has a static IP. If both computers are on the same network subnet you can look up the IP address needed to reach one computer from the other manually. Otherwise, the IP one computer must use to reach the other won't be the same IP that the computer sees for itself. This matchmaking is the service that stratus/cirrus provides.
See http://www.brynosaurus.com/pub/net/p2pnat/ for a description of the problem.
OK, here goes:
I have a CentOS server set up to accept PPTP connections and tunnel the users traffic through my server.
I am sharing this with my friends and family, and everytime they want to connect they have to go into control panel, and connect to the network manually. To set up the network, they go through a wizzard that Windows has to set up a new VPN connection for them, and they put in the IP address, username and password.
I wanted to make a really simple client for them to use. When it's first installed and they click "Connect", the program must make the new network (like they were going through the wizard), and every time after that just swap over to use the VPN network. If they click "Disconnect", it will go back to using their regular LAN network.
I would ideally like to code this in .NET, as that is where I have a lot of experience, but I have no idea where to start.
Could anyone point me in the right direction? Maybe some code samples?
Help would be greatly appreciated, thanks. =]
Ah, much easier to understand - thanks for the clarification!
At the risk of sounding like I'm an OpenVPN fanatic, look at openvpn, particularly the Access Server here. I think you'll find it does exactly what you need.
OpenVPN is open source, so it's 100% code samples and as customizable as you like. (Be careful what you ask for! :-) )
Good luck!