So the program I am attempting to create sends a packet of data to a server I created that is hosted on a linux box. It all works however it only seems to work when I have WiFi connection. Due to the nature of my project, I need to find a way to use send packets to the server without using WiFi, thus using mobile data. 

Is there a way to do this?

```
            connection = new Socket(IP, port);

            out = new ObjectOutputStream(connection.getOutputStream());
            out.flush();

            in = new ObjectInputStream(connection.getInputStream());

            out.writeObject(new Packet("General Information"));

            Packet = (Packet) in.readObject();

```

This is the code that I use for sending packets to my server. I use the permission for Internet in my manifest.xml. Is there a different permission I need to use in order to bypass the need for WiFi so that I can use this program outside of a WiFi hot spot?